store: make test stable (#2922)
This commit is contained in:
@ -122,13 +122,10 @@ func (s *testPoolSuite) TestPoolsClose(c *C) {
|
||||
}
|
||||
|
||||
ch := make(chan struct{})
|
||||
var checkErr error
|
||||
go func() {
|
||||
<-ch
|
||||
_, checkErr = pools.GetConn(addr)
|
||||
pools.PutConn(conns[capability-1])
|
||||
}()
|
||||
close(ch)
|
||||
pools.Close()
|
||||
c.Assert(checkErr, NotNil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user