Skip to content

Commit

Permalink
Fix flaky cli exec tests (#1497)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmay-browserstack authored Jan 19, 2024
1 parent 6a344f1 commit 284c797
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli-exec/test/exec.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ describe('percy exec', () => {
)]);

// wait until the process starts
await new Promise(r => setTimeout(r, 500));
await new Promise(r => setTimeout(r, 1000));
expect(logger.stdout).toEqual(jasmine.arrayContaining([
jasmine.stringContaining('[percy] Running "node --eval ')
]));
Expand Down
2 changes: 2 additions & 0 deletions packages/cli-exec/test/start.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ describe('percy exec:start', () => {

started = start(['--quiet']);
started.then(() => (started = null));
// wait until the process starts
await new Promise(r => setTimeout(r, 1000));
await ping();
});

Expand Down

0 comments on commit 284c797

Please sign in to comment.