Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit b2a663f

Browse files
committed
Add more logging to a test failing only in Travis / Node 4
1 parent 4c2121c commit b2a663f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/commands/projects-test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,13 @@ describe('sample projects', function() {
103103

104104
// Change a file to trigger a reload after the HMR client connects
105105
hmrClient.onopen = () => {
106-
console.log('HMR open: changing file in 5s')
106+
console.log('HMR open: changing file in 10s')
107107
setTimeout(() => {
108108
state = States.CHANGED_FILE
109109
let content = fs.readFileSync(path.join(tmpDir, 'src/App.js'), 'utf-8')
110+
console.log('HMR open: changing file now')
110111
fs.writeFileSync(path.join(tmpDir, 'src/App.js'), content.replace('Welcome to', 'Change'))
111-
}, 5000)
112+
}, 10000)
112113
}
113114

114115
// Fail on EventSource errors
@@ -117,6 +118,7 @@ describe('sample projects', function() {
117118
}
118119

119120
hmrClient.onmessage = e => {
121+
// Ignore hearbeat
120122
if (e.data === '\uD83D\uDC93') {
121123
return
122124
}

0 commit comments

Comments
 (0)