fix racy idle timeout test in the session

This commit is contained in:
Marten Seemann
2020-05-05 12:09:58 +07:00
parent de3f04f697
commit e1d1421111

View File

@@ -1761,7 +1761,6 @@ var _ = Describe("Session", func() {
}()
Consistently(sess.Context().Done()).ShouldNot(BeClosed())
// make the go routine return
sess.handshakeComplete = true
expectReplaceWithClosed()
cryptoSetup.EXPECT().Close()
mconn.EXPECT().Write(gomock.Any())