Skip to content

Commit 607abdd

Browse files
committed
explicitly set the pagesize as 4096 for the concurrent test
Different platforms may have different page size, but the test should be independent to the platforms; so explicitly set the pagesize as 4096. Signed-off-by: Benjamin Wang <[email protected]>
1 parent 065ba27 commit 607abdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

concurrent_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ func concurrentReadAndWrite(t *testing.T,
165165
testDuration time.Duration) {
166166

167167
t.Log("Preparing db.")
168-
db := mustCreateDB(t, nil)
168+
db := mustCreateDB(t, &bolt.Options{
169+
PageSize: 4096,
170+
})
169171
defer db.Close()
170172
err := db.Update(func(tx *bolt.Tx) error {
171173
for i := 0; i < conf.bucketCount; i++ {

0 commit comments

Comments
 (0)