Skip to content

Commit b654bf8

Browse files
committed
more debug info
1 parent 7beea36 commit b654bf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/eventsource/eventsource-connect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ describe('EventSource - received response must have content-type to be text/even
203203

204204
eventSourceInstance.close()
205205

206-
assert.strictEqual(end - start < (3.5 * reconnectionTime), true)
206+
assert.strictEqual(end - start < (3.5 * reconnectionTime), true, `Expected reconnection to happen within ${3.5 * reconnectionTime}ms, but took ${end - start}ms`)
207207
})
208208

209209
test('should try to connect again if server is unreachable', async () => {
@@ -226,6 +226,6 @@ describe('EventSource - received response must have content-type to be text/even
226226

227227
eventSourceInstance.close()
228228

229-
assert.strictEqual(end - start < (3.5 * reconnectionTime), true)
229+
assert.strictEqual(end - start < (3.5 * reconnectionTime), true, `Expected reconnection to happen within ${3.5 * reconnectionTime}ms, but took ${end - start}ms`)
230230
})
231231
})

0 commit comments

Comments
 (0)