store: make test stable (#2922)

This commit is contained in:
Lynn
2017-03-24 20:25:23 +08:00
committed by goroutine
parent 1513adc986
commit 146486f44c

View File

@ -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)
}