mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 21:57:36 +03:00
fix crypto setup tests
This commit is contained in:
parent
462deb5038
commit
53ef5669e2
1 changed files with 2 additions and 2 deletions
|
@ -201,7 +201,7 @@ var _ = Describe("Crypto setup", func() {
|
|||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(d).To(Equal([]byte("decrypted")))
|
||||
_, err = cs.Open(0, []byte{}, foobarFNVSigned)
|
||||
Expect(err).To(Equal(ErrDecryptionFailed))
|
||||
Expect(err).To(MatchError("authentication failed"))
|
||||
})
|
||||
|
||||
It("is not used after CHLO", func() {
|
||||
|
@ -238,7 +238,7 @@ var _ = Describe("Crypto setup", func() {
|
|||
_, err := cs.Open(0, []byte{}, []byte("forward secure encrypted"))
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
_, err = cs.Open(0, []byte{}, []byte("encrypted"))
|
||||
Expect(err).To(Equal(ErrDecryptionFailed))
|
||||
Expect(err).To(MatchError("authentication failed"))
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue