Skip to content

Commit

Permalink
skip the pool shrink test for fast test
Browse files Browse the repository at this point in the history
it includes a 1 minute sleep for the pool cooling down.

Signed-off-by: Wang Xu <[email protected]>
  • Loading branch information
gnawux committed Feb 27, 2018
1 parent dd9c654 commit ea1fb2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ func (s *S) TestMaxIdleTimeMS(c *C) {
}

func (s *S) TestPoolShrink(c *C) {
if *fast {
c.Skip("-fast")
}
oldSocket := mgo.GetStats().SocketsAlive

session, err := mgo.Dial("localhost:40001?minPoolSize=1&maxIdleTimeMS=1000")
Expand Down

0 comments on commit ea1fb2b

Please sign in to comment.