forked from quic-go/quic-go
make the stream deletion error message more specific
This commit is contained in:
@@ -74,7 +74,7 @@ var _ = Describe("Streams Map (outgoing)", func() {
|
||||
It("errors when deleting a non-existing stream", func() {
|
||||
err := m.DeleteStream(1337)
|
||||
Expect(err).To(HaveOccurred())
|
||||
Expect(err.(streamError).TestError()).To(MatchError("Tried to delete unknown stream 1337"))
|
||||
Expect(err.(streamError).TestError()).To(MatchError("Tried to delete unknown outgoing stream 1337"))
|
||||
})
|
||||
|
||||
It("errors when deleting a stream twice", func() {
|
||||
@@ -83,7 +83,7 @@ var _ = Describe("Streams Map (outgoing)", func() {
|
||||
Expect(m.DeleteStream(1)).To(Succeed())
|
||||
err = m.DeleteStream(1)
|
||||
Expect(err).To(HaveOccurred())
|
||||
Expect(err.(streamError).TestError()).To(MatchError("Tried to delete unknown stream 1"))
|
||||
Expect(err.(streamError).TestError()).To(MatchError("Tried to delete unknown outgoing stream 1"))
|
||||
})
|
||||
|
||||
It("closes all streams when CloseWithError is called", func() {
|
||||
|
||||
Reference in New Issue
Block a user