aboutsummaryrefslogtreecommitdiff
path: root/tests/cluster/cluster_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2023-06-05 12:42:33 +0200
committerJakob Unterwurzacher2026-07-16 22:07:54 +0200
commit13c6e523d6cd36b8f05a6db36dab62cbc5a081f6 (patch)
treefa7a1e3bd55570c8673fa082a16d6bdb1d7bbb12 /tests/cluster/cluster_test.go
parentb499d38b23f209eb49cbc37d3acd2f9444f5654f (diff)
tests/cluster: add TestConcurrentCreate
This exercises the byte-range locks we just added.
Diffstat (limited to 'tests/cluster/cluster_test.go')
-rw-r--r--tests/cluster/cluster_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cluster/cluster_test.go b/tests/cluster/cluster_test.go
index f9d0903..99a017f 100644
--- a/tests/cluster/cluster_test.go
+++ b/tests/cluster/cluster_test.go
@@ -15,6 +15,7 @@ import (
"syscall"
"testing"
+ "github.com/rfjakob/gocryptfs/v2/internal/contentenc"
"github.com/rfjakob/gocryptfs/v2/tests/test_helpers"
)
@@ -39,7 +40,7 @@ func TestClusterConcurrentRW(t *testing.T) {
"Choose a backing directory by setting TMPDIR.")
}
- const blocksize = 4096
+ const blocksize = contentenc.DefaultBS
const fileSize = 25 * blocksize // 100 kiB
cDir := test_helpers.InitFS(t)