From b2a663fcba9d0212df11879af6b0af3a20e3a6e6 Mon Sep 17 00:00:00 2001 From: Jonny Buchanan Date: Tue, 12 Dec 2017 13:12:05 +1000 Subject: [PATCH] Add more logging to a test failing only in Travis / Node 4 --- tests/commands/projects-test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 }