From fc04a09033c98e5c3eff38c214c4c34dd40e980e Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Wed, 3 Jun 2015 14:36:48 +0300 Subject: [PATCH] Fix flaky test. --- pool_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pool_test.go b/pool_test.go index 3b0d00af..a4fa76e2 100644 --- a/pool_test.go +++ b/pool_test.go @@ -101,8 +101,9 @@ var _ = Describe("Pool", func() { }) pool := client.Pool() - Expect(pool.Len()).To(Equal(10)) - Expect(pool.FreeLen()).To(Equal(10)) + Expect(pool.Len()).To(BeNumerically("<=", 10)) + Expect(pool.FreeLen()).To(BeNumerically("<=", 10)) + Expect(pool.Len()).To(Equal(pool.FreeLen())) }) It("should remove broken connections", func() {