X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/14a27997ba2a94c5a7250ddde4519d5f68b6eda0..fbcc5ab5e7a5ad65b81e3965f93b1679d1b1e06f:/services/keepstore/bufferpool_test.go?ds=sidebyside diff --git a/services/keepstore/bufferpool_test.go b/services/keepstore/bufferpool_test.go index b2f63b1abb..718e2cac60 100644 --- a/services/keepstore/bufferpool_test.go +++ b/services/keepstore/bufferpool_test.go @@ -10,8 +10,10 @@ import ( func TestBufferPool(t *testing.T) { TestingT(t) } + var _ = Suite(&BufferPoolSuite{}) -type BufferPoolSuite struct {} + +type BufferPoolSuite struct{} // Initialize a default-sized buffer pool for the benefit of test // suites that don't run main(). @@ -50,7 +52,7 @@ func testBufferPoolRace(c *C, bufs *bufferPool, unused []byte, expectWin string) race <- "Get" }() go func() { - time.Sleep(10*time.Millisecond) + time.Sleep(10 * time.Millisecond) bufs.Put(unused) race <- "Put" }() @@ -81,5 +83,5 @@ func (s *BufferPoolSuite) TestBufferPoolReuse(c *C) { } last = next } - c.Check(reuses > allocs * 95/100, Equals, true) + c.Check(reuses > allocs*95/100, Equals, true) }