-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream.emit('error', err) -> stream.destroy(err) #127
Conversation
CI is failing |
@mcollina Hmm, I've fixed most of the failures by adding Any ideas? I've allowed edits by maintainers in case it's a simple thing you're able to spot. Thanks! 🙂 |
Unfortunately I have no time to debug this change :( |
898bb70
to
97a261b
Compare
@@ -180,7 +180,6 @@ function testWriteToStreamError (expected, fixture) { | |||
const result = mqtt.writeToStream(fixture, stream) | |||
|
|||
t.false(result, 'result should be false') | |||
t.end() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically, this test was failing because destroy()
emits error
asynchronously.
Removing t.end()
here is fine because the test will automatically end when two assertions are hit and will fail the test if more than 2 are hit (per the tape documentation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Don't have merge permission :) |
close #126