diff --git a/tests/commands/projects-test.js b/tests/commands/projects-test.js index 0286ccc0..c5ba8a6f 100644 --- a/tests/commands/projects-test.js +++ b/tests/commands/projects-test.js @@ -103,12 +103,13 @@ describe('sample projects', function() { // Change a file to trigger a reload after the HMR client connects hmrClient.onopen = () => { - console.log('HMR open: changing file in 5s') + console.log('HMR open: changing file in 10s') setTimeout(() => { state = States.CHANGED_FILE let content = fs.readFileSync(path.join(tmpDir, 'src/App.js'), 'utf-8') + console.log('HMR open: changing file now') fs.writeFileSync(path.join(tmpDir, 'src/App.js'), content.replace('Welcome to', 'Change')) - }, 5000) + }, 10000) } // Fail on EventSource errors @@ -117,6 +118,7 @@ describe('sample projects', function() { } hmrClient.onmessage = e => { + // Ignore hearbeat if (e.data === '\uD83D\uDC93') { return }