projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
6507: Paste in command line for creating service principals instead of just
[arvados.git]
/
services
/
keepstore
/
bufferpool_test.go
diff --git
a/services/keepstore/bufferpool_test.go
b/services/keepstore/bufferpool_test.go
index b2f63b1abbd04dd24993d5ba1a151d8af3034fe3..718e2cac6092fe4400e4d370945e17d603010dac 100644
(file)
--- a/
services/keepstore/bufferpool_test.go
+++ b/
services/keepstore/bufferpool_test.go
@@
-10,8
+10,10
@@
import (
func TestBufferPool(t *testing.T) {
TestingT(t)
}
func TestBufferPool(t *testing.T) {
TestingT(t)
}
+
var _ = Suite(&BufferPoolSuite{})
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().
// 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() {
race <- "Get"
}()
go func() {
- time.Sleep(10
*
time.Millisecond)
+ time.Sleep(10
*
time.Millisecond)
bufs.Put(unused)
race <- "Put"
}()
bufs.Put(unused)
race <- "Put"
}()
@@
-81,5
+83,5
@@
func (s *BufferPoolSuite) TestBufferPoolReuse(c *C) {
}
last = next
}
}
last = next
}
- c.Check(reuses > allocs
*
95/100, Equals, true)
+ c.Check(reuses > allocs
*
95/100, Equals, true)
}
}