From e7027d4d1a6241632d05f9e8448f48fe96ebae1c Mon Sep 17 00:00:00 2001 From: carter2000 <315882215@qq.com> Date: Wed, 10 May 2017 15:23:13 +0800 Subject: [PATCH] remove unreasonable assert --- cluster_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cluster_test.go b/cluster_test.go index ef9700cbd..f41dec83f 100644 --- a/cluster_test.go +++ b/cluster_test.go @@ -2161,7 +2161,6 @@ func (s *S) TestConnectServerFailed(c *C) { // no sockets leak. // 5 is a rough estimate for the deviation cause by concurrency and backgroud pinger. stats := mgo.GetStats() - c.Assert(stats.MasterConns > maxDials/2*3-5, Equals, true) c.Assert(stats.SocketsAlive > maxDials-5, Equals, true) c.Assert(stats.SocketsAlive < maxDials+5, Equals, true) }