fix flaky server test (#4167)

This commit is contained in:
Marten Seemann
2023-11-14 11:00:42 +01:00
committed by GitHub
parent 740119b144
commit 427f53328b

View File

@@ -530,7 +530,7 @@ var _ = Describe("Server", func() {
Eventually(run).Should(BeClosed())
Eventually(done).Should(BeClosed())
// shutdown
conn.EXPECT().destroy(gomock.Any())
conn.EXPECT().destroy(gomock.Any()).MaxTimes(1)
})
It("drops packets if the receive queue is full", func() {