Skip to content

Commit

Permalink
Ensure there is drain event, for our test basline.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnought committed Jan 25, 2020
1 parent 087f7dc commit 03ea30d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/basic.js
Expand Up @@ -582,11 +582,14 @@ test('id option', function (t) {
})

test('not duplicate client close when client error occurs', function (t) {
t.plan(0)
t.plan(1)

var broker = aedes()
connect(setup(broker))
broker.on('client', function (client) {
client.conn.on('drain', () => {
t.pass('client closed ok')
})
client.close()
// add back to test if there is duplicated close() call
client.conn.on('drain', () => {
Expand Down

0 comments on commit 03ea30d

Please sign in to comment.