diff --git a/e2e/__tests__/watch_mode_no_access.test.js b/e2e/__tests__/watch_mode_no_access.test.js index 272e34972696..8ba6aef46b4f 100644 --- a/e2e/__tests__/watch_mode_no_access.test.js +++ b/e2e/__tests__/watch_mode_no_access.test.js @@ -46,25 +46,25 @@ test('does not re-run tests when only access time is modified', async () => { '1 failed, 1 total', ); - await sleep(1000); + await sleep(2000); // Should re-run the test const modulePath = path.join(DIR, 'foo.js'); const stat = fs.lstatSync(modulePath); fs.utimesSync(modulePath, stat.atime, stat.mtime); - await sleep(1000); + await sleep(2000); // Should not re-run the test const fakeATime = 1541723621; fs.utimesSync(modulePath, fakeATime, stat.mtime); - await sleep(1000); + await sleep(2000); // Should re-run the test fs.writeFileSync(modulePath, 'module.exports = 1;', {encoding: 'utf-8'}); - await sleep(1000); + await sleep(2000); // Should make the test fail and finish the process fs.writeFileSync(modulePath, 'module.exports = undefined;', {