don't schedule sending when stream.Write is called after the deadline

This commit is contained in:
Marten Seemann
2017-12-18 22:11:47 +07:00
parent 3245c81bbc
commit d4b80bd8d0
2 changed files with 4 additions and 0 deletions

View File

@@ -208,6 +208,7 @@ var _ = Describe("Send Stream", func() {
n, err := strWithTimeout.Write([]byte("foobar"))
Expect(err).To(MatchError(errDeadline))
Expect(n).To(BeZero())
Expect(onDataCalled).To(BeFalse())
})
It("unblocks after the deadline", func() {