forked from quic-go/quic-go
make the stream deletion error message more specific
This commit is contained in:
@@ -212,22 +212,22 @@ var _ = Describe("Streams Map", func() {
|
||||
|
||||
It("errors when deleting unknown incoming unidirectional streams", func() {
|
||||
id := ids.firstIncomingUniStream + 4
|
||||
Expect(m.DeleteStream(id)).To(MatchError(fmt.Sprintf("Tried to delete unknown stream %d", id)))
|
||||
Expect(m.DeleteStream(id)).To(MatchError(fmt.Sprintf("Tried to delete unknown incoming stream %d", id)))
|
||||
})
|
||||
|
||||
It("errors when deleting unknown outgoing unidirectional streams", func() {
|
||||
id := ids.firstOutgoingUniStream + 4
|
||||
Expect(m.DeleteStream(id)).To(MatchError(fmt.Sprintf("Tried to delete unknown stream %d", id)))
|
||||
Expect(m.DeleteStream(id)).To(MatchError(fmt.Sprintf("Tried to delete unknown outgoing stream %d", id)))
|
||||
})
|
||||
|
||||
It("errors when deleting unknown incoming bidirectional streams", func() {
|
||||
id := ids.firstIncomingBidiStream + 4
|
||||
Expect(m.DeleteStream(id)).To(MatchError(fmt.Sprintf("Tried to delete unknown stream %d", id)))
|
||||
Expect(m.DeleteStream(id)).To(MatchError(fmt.Sprintf("Tried to delete unknown incoming stream %d", id)))
|
||||
})
|
||||
|
||||
It("errors when deleting unknown outgoing bidirectional streams", func() {
|
||||
id := ids.firstOutgoingBidiStream + 4
|
||||
Expect(m.DeleteStream(id)).To(MatchError(fmt.Sprintf("Tried to delete unknown stream %d", id)))
|
||||
Expect(m.DeleteStream(id)).To(MatchError(fmt.Sprintf("Tried to delete unknown outgoing stream %d", id)))
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user