Skip to content

Commit

Permalink
remove unreasonable assert
Browse files Browse the repository at this point in the history
  • Loading branch information
carter2000 committed May 10, 2017
1 parent 1784e13 commit e7027d4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cluster_test.go
Expand Up @@ -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)
}

0 comments on commit e7027d4

Please sign in to comment.