aboutsummaryrefslogtreecommitdiff
path: root/tests/test_helpers
diff options
context:
space:
mode:
authorJakob Unterwurzacher2023-06-05 12:42:33 +0200
committerJakob Unterwurzacher2023-06-06 16:24:06 +0200
commit344917ca1be87421f4120187820adb2a41fb130b (patch)
treeafcc61b335e88dea9d9879a20abf4e8ed0484f6b /tests/test_helpers
parent964f0c190932e5dc53b05ec69ccda6e8d33a73b6 (diff)
tests/cluster: add TestConcurrentCreate
This exercises the byte-range locks we just added.
Diffstat (limited to 'tests/test_helpers')
-rw-r--r--tests/test_helpers/helpers.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index 0d21548..b3594e6 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -10,6 +10,7 @@ import (
"os"
"os/exec"
"path/filepath"
+ "strings"
"syscall"
"testing"
@@ -147,6 +148,7 @@ func InitFS(t *testing.T, extraArgs ...string) string {
prefix := "x."
if t != nil {
prefix = t.Name() + "."
+ prefix = strings.ReplaceAll(prefix, "/", "_")
}
dir, err := ioutil.TempDir(TmpDir, prefix)
if err != nil {