From 2ab01f14cfbcdc8ead8469926e14c9ec2357e6d7 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Tue, 2 Jul 2019 13:21:51 +0700 Subject: [PATCH] fix flaky key drop test on AppVeyor --- internal/handshake/updatable_aead_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handshake/updatable_aead_test.go b/internal/handshake/updatable_aead_test.go index 3ec8e9200..a3b751b06 100644 --- a/internal/handshake/updatable_aead_test.go +++ b/internal/handshake/updatable_aead_test.go @@ -177,7 +177,7 @@ var _ = Describe("Updatable AEAD", func() { Expect(err).ToNot(HaveOccurred()) Expect(server.KeyPhase()).To(Equal(protocol.KeyPhaseOne)) // now receive a reordered packet with key phase 0 - time.Sleep(3 * pto) + time.Sleep(3*pto + 5*time.Millisecond) _, err = server.Open(nil, encrypted02, 0x43, protocol.KeyPhaseZero, ad) Expect(err).To(MatchError(ErrKeysDropped)) })