From 607abddc74e9ac089abc80d2c0dd866a0e7c986d Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Wed, 26 Jun 2024 12:37:08 +0100 Subject: [PATCH] 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 --- concurrent_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/concurrent_test.go b/concurrent_test.go index 10f1a2f..07c0c1f 100644 --- a/concurrent_test.go +++ b/concurrent_test.go @@ -165,7 +165,9 @@ func concurrentReadAndWrite(t *testing.T, testDuration time.Duration) { t.Log("Preparing db.") - db := mustCreateDB(t, nil) + db := mustCreateDB(t, &bolt.Options{ + PageSize: 4096, + }) defer db.Close() err := db.Update(func(tx *bolt.Tx) error { for i := 0; i < conf.bucketCount; i++ {