From 361943a490680abcda663f7ab475b295dc5dc9f9 Mon Sep 17 00:00:00 2001 From: Matthew Sykes Date: Tue, 16 Jun 2015 18:15:41 -0400 Subject: [PATCH] Fix accept loop flake --- cf-plugin/cmd/ssh_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf-plugin/cmd/ssh_test.go b/cf-plugin/cmd/ssh_test.go index f292f0c..511540c 100644 --- a/cf-plugin/cmd/ssh_test.go +++ b/cf-plugin/cmd/ssh_test.go @@ -956,7 +956,7 @@ var _ = Describe("Diego SSH Plugin", func() { conn, err := net.Dial("tcp", localAddress) Expect(err).NotTo(HaveOccurred()) - Eventually(echoListener.AcceptCallCount).Should(Equal(1)) + Eventually(echoListener.AcceptCallCount).Should(BeNumerically(">=", 1)) Eventually(fakeSecureClient.DialCallCount).Should(Equal(1)) network, addr := fakeSecureClient.DialArgsForCall(0)