Skip to content

Commit 092ba38

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,8 +1093,8 @@ group('sliceUploadFile() ', function () {
10931093
SecretId: config.SecretId,
10941094
SecretKey: config.SecretKey,
10951095
});
1096-
var filename = Date.now().toString(36) + '-10m.zip';
1097-
var filePath = createFileSync(path.resolve(__dirname, filename), 1024 * 1024 * 10);
1096+
var filename = Date.now().toString(36) + '-20m.zip';
1097+
var filePath = createFileSync(path.resolve(__dirname, filename), 1024 * 1024 * 20);
10981098
var paused = false;
10991099
var restarted = false;
11001100
var TaskId;
@@ -1129,7 +1129,7 @@ group('sliceUploadFile() ', function () {
11291129
TaskId = taskId;
11301130
},
11311131
onProgress: function (info) {
1132-
if (!paused && info.percent >= 0.2) {
1132+
if (!paused && info.percent >= 0.1) {
11331133
cos2.pauseTask(TaskId);
11341134
paused = true;
11351135
setTimeout(function () {

0 commit comments

Comments
 (0)