increase test sleep timeout to reduce flakiness
This commit is contained in:
parent
3a38be169d
commit
4405822cd9
4
test.js
4
test.js
|
@ -1,5 +1,3 @@
|
|||
/* eslint no-console: 0 */
|
||||
|
||||
const CheapWatch = require('.');
|
||||
|
||||
const assert = require('assert');
|
||||
|
@ -19,7 +17,7 @@ const rmdir =
|
|||
exec(`rmdir /s /q ${path.replace(/\//g, '\\')} 2> nul`).catch(() => {})
|
||||
: path => exec('rm -rf ' + path);
|
||||
|
||||
const sleep = (ms = 100) => new Promise(res => setTimeout(res, ms));
|
||||
const sleep = (ms = 1000) => new Promise(res => setTimeout(res, ms));
|
||||
|
||||
function getEvents(watch) {
|
||||
const events = new Set();
|
||||
|
|
Loading…
Reference in New Issue