Merge pull request #754 from lucas-clemente/fix-641

fix a race condition in a session test
This commit is contained in:
Marten Seemann
2017-07-24 22:48:18 +07:00
committed by GitHub

View File

@@ -1377,7 +1377,7 @@ var _ = Describe("Session", func() {
})
It("ignores undecryptable packets after the handshake is complete", func() {
close(aeadChanged)
sess.handshakeComplete = true
go sess.run()
sendUndecryptablePackets()
Consistently(sess.undecryptablePackets).Should(BeEmpty())