-// Initialize a default-sized buffer pool for the benefit of test
-// suites that don't run main().
-func init() {
- bufs = newBufferPool(maxBuffers, BLOCKSIZE)
+var bufferPoolTestSize = 10
+
+type BufferPoolSuite struct{}
+
+func (s *BufferPoolSuite) SetUpTest(c *C) {
+ bufferPoolBlockSize = bufferPoolTestSize
+}
+
+func (s *BufferPoolSuite) TearDownTest(c *C) {
+ bufferPoolBlockSize = BlockSize