7159: Fix error handling when reading full size block. refs #7159
[arvados.git] / services / keepstore / bufferpool_test.go
index 718e2cac6092fe4400e4d370945e17d603010dac..8726a19150c7faf2f309cc6b3ba647d9aa40dd54 100644 (file)
@@ -18,7 +18,12 @@ type BufferPoolSuite struct{}
 // Initialize a default-sized buffer pool for the benefit of test
 // suites that don't run main().
 func init() {
-       bufs = newBufferPool(maxBuffers, BLOCKSIZE)
+       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) {