Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

test: Increase test coverage #9

Merged
merged 1 commit into from
Apr 18, 2016
Merged

test: Increase test coverage #9

merged 1 commit into from
Apr 18, 2016

Conversation

dignifiedquire
Copy link
Member

Ported tests from #6

@@ -36,8 +36,7 @@ function Silent () {
if (msg === protocol) {
return callback(null, self.duplexStream)
} else {
self.duplexStream.end()
Copy link
Member

@daviddias daviddias Apr 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this call? Closing the stream is the signal that the protocol was not supported in this scenario.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the error means the protocol is not supported?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore my last message. We don't want to end the stream, just because one (of possible multiple handlers) errors, is my understanding of this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be interpreted differently, but since there is ambiguity from the spec (as it is more of a implementation details) and I have no strong use case for it to close. Let's continue this way then.

@daviddias daviddias mentioned this pull request Apr 18, 2016
@daviddias daviddias merged commit ed8933c into master Apr 18, 2016
@daviddias daviddias deleted the more-tests branch April 18, 2016 22:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants