diff options
| author | Jakob Unterwurzacher | 2023-06-05 12:42:33 +0200 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-07-16 19:56:58 +0200 |
| commit | 0b8e9be5ec3bf16c17b2d53a3c8d62e8f525331e (patch) | |
| tree | 7df6a755b054e4e046d9d7c9baae11daa1e19630 /tests/test_helpers/helpers.go | |
| parent | e56c2e44cc4dd1484cae78956f8ff72a9eea42f2 (diff) | |
tests/cluster: add TestConcurrentCreate
This exercises the byte-range locks we just added.
Diffstat (limited to 'tests/test_helpers/helpers.go')
| -rw-r--r-- | tests/test_helpers/helpers.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go index c8cd151..fd2ea9c 100644 --- a/tests/test_helpers/helpers.go +++ b/tests/test_helpers/helpers.go @@ -9,6 +9,7 @@ import ( "os" "os/exec" "path/filepath" + "strings" "syscall" "testing" @@ -146,6 +147,7 @@ func InitFS(t *testing.T, extraArgs ...string) string { prefix := "x." if t != nil { prefix = t.Name() + "." + prefix = strings.ReplaceAll(prefix, "/", "_") } dir, err := os.MkdirTemp(TmpDir, prefix) if err != nil { |
