6260: Fix races in keepstore tests. Expose WorkQueue in-progress/queued stats.
[arvados.git] / services / keepstore / bufferpool_test.go
index 718e2cac6092fe4400e4d370945e17d603010dac..95d118e221de6b8516654f8a133b871da00c5cd2 100644 (file)
@@ -21,6 +21,11 @@ func init() {
        bufs = newBufferPool(maxBuffers, BLOCKSIZE)
 }
 
+// Restore sane default after bufferpool's own tests
+func (s *BufferPoolSuite) TearDownTest(c *C) {
+       bufs = newBufferPool(maxBuffers, BLOCKSIZE)
+}
+
 func (s *BufferPoolSuite) TestBufferPoolBufSize(c *C) {
        bufs := newBufferPool(2, 10)
        b1 := bufs.Get(1)