1
Fork 0

increase test sleep timeout to reduce flakiness

This commit is contained in:
Conduitry 2018-10-11 05:40:01 -04:00
parent 3a38be169d
commit 4405822cd9
1 changed files with 1 additions and 3 deletions

View File

@ -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();