Skip to content

Commit fd60ec9

Browse files
committed
Fixed tests on Mac OS X
1 parent 428033c commit fd60ec9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/abstract_client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,6 +2331,10 @@ module.exports = function (server, config) {
23312331
var incomingStore = new mqtt.Store({ clean: false })
23322332
var outgoingStore = new mqtt.Store({ clean: false })
23332333
var server2 = new Server(function (c) {
2334+
// errors are not interesting for this test
2335+
// but they might happen on some platforms
2336+
c.on('error', function () {})
2337+
23342338
c.on('connect', function (packet) {
23352339
c.connack({returnCode: 0})
23362340
})

0 commit comments

Comments
 (0)