fix flaky server test

This commit is contained in:
Marten Seemann 2017-02-08 12:21:20 +07:00
parent bef36f7429
commit 00ef1249ce
No known key found for this signature in database
GPG key ID: 3603F40B121FCDEA

View file

@ -88,6 +88,7 @@ var _ = Describe("Server", func() {
})
It("closes and deletes sessions", func() {
server.deleteClosedSessionsAfter = time.Second // make sure that the nil value for the closed session doesn't get deleted in this test
err := server.handlePacket(nil, nil, append(firstPacket, (&crypto.NullAEAD{}).Seal(nil, nil, 0, firstPacket)...))
Expect(err).ToNot(HaveOccurred())
Expect(server.sessions).To(HaveLen(1))