Skip to content

Commit

Permalink
fix: add a default value for sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyutaotao committed Aug 28, 2024
1 parent 43dc476 commit 3577afb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/web-integration/src/common/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,7 @@ export class PageTaskExecutor {
subType: 'Sleep',
param: plan.param,
executor: async (taskParam) => {
assert(taskParam.timeMs, 'No time to sleep');
await sleep(taskParam.timeMs);
await sleep(taskParam.timeMs || 3000);
},
};
return taskActionSleep;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3577afb

Please sign in to comment.