Skip to content

Commit

Permalink
more generic assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Jul 27, 2022
1 parent 4a2ceaf commit 7bf007d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tcpRetyFail.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test('tcp retry fail', function testTcpRetryFail (done) {
})
tcpConnection.on('reconnectFailure', (lastError) => {
expect(socketErrorCount).to.eq(3)
expect(lastError.message).to.eq('connect ECONNREFUSED 127.0.0.1')
expect(lastError).to.be.an('error')
done()
})
})

0 comments on commit 7bf007d

Please sign in to comment.