mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
expose a StatelessResetError
This commit is contained in:
parent
1ce572228b
commit
93cfef57ca
8 changed files with 53 additions and 24 deletions
|
@ -373,10 +373,10 @@ var _ = Describe("Packet Handler Map", func() {
|
|||
defer GinkgoRecover()
|
||||
defer close(destroyed)
|
||||
Expect(err).To(HaveOccurred())
|
||||
var resetErr *statelessResetErr
|
||||
var resetErr *StatelessResetError
|
||||
Expect(errors.As(err, &resetErr)).To(BeTrue())
|
||||
Expect(err.Error()).To(ContainSubstring("received a stateless reset"))
|
||||
Expect(resetErr.token).To(Equal(token))
|
||||
Expect(resetErr.Token).To(Equal(token))
|
||||
})
|
||||
packetChan <- packetToRead{data: packet}
|
||||
Eventually(destroyed).Should(BeClosed())
|
||||
|
@ -393,10 +393,10 @@ var _ = Describe("Packet Handler Map", func() {
|
|||
packetHandler.EXPECT().destroy(gomock.Any()).Do(func(err error) {
|
||||
defer GinkgoRecover()
|
||||
Expect(err).To(HaveOccurred())
|
||||
var resetErr *statelessResetErr
|
||||
var resetErr *StatelessResetError
|
||||
Expect(errors.As(err, &resetErr)).To(BeTrue())
|
||||
Expect(err.Error()).To(ContainSubstring("received a stateless reset"))
|
||||
Expect(resetErr.token).To(Equal(token))
|
||||
Expect(resetErr.Token).To(Equal(token))
|
||||
close(destroyed)
|
||||
})
|
||||
packetChan <- packetToRead{data: packet}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue