Skip to content

Commit f4ea4fb

Browse files
committed
fix: 优化单测
1 parent 092ba38 commit f4ea4fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,18 +1130,20 @@ group('sliceUploadFile() ', function () {
11301130
},
11311131
onProgress: function (info) {
11321132
if (!paused && info.percent >= 0.1) {
1133+
console.log('-----paused', TaskId, info.percent);
11331134
cos2.pauseTask(TaskId);
11341135
paused = true;
11351136
setTimeout(function () {
11361137
restarted = true;
1138+
console.log('-----restartTask', TaskId);
11371139
cos2.restartTask(TaskId);
11381140
}, 100);
11391141
}
11401142
},
11411143
},
11421144
function (err, data) {
11431145
if (paused) {
1144-
console.log('paused-------');
1146+
console.log('paused-------', data);
11451147
return;
11461148
}
11471149
paused = true;

0 commit comments

Comments
 (0)