aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2025-08-07 23:35:35 +0200
committerJakob Unterwurzacher2025-08-07 23:36:42 +0200
commit8d90c5e3d5cba48a097aadf9beba61c7a2301d85 (patch)
treeea61d357d42e11fcce78254ad5ced93f910f0549
parent21d41feaa52b7a2ebcf0f683ba314235a5186620 (diff)
tests: matrix: use unique ctlsock path
Because the deletion happens asynchronously, a previous iteration can delete the socket of the next one.
-rw-r--r--tests/matrix/main_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/matrix/main_test.go b/tests/matrix/main_test.go
index 24f477e..cf0b6c4 100644
--- a/tests/matrix/main_test.go
+++ b/tests/matrix/main_test.go
@@ -82,7 +82,7 @@ func TestMain(m *testing.M) {
} else if testcase.isSet("-deterministic-names") {
createDirIV = false
}
- ctlsockPath = test_helpers.TmpDir + "/ctlsock"
+ ctlsockPath = fmt.Sprintf("%s/ctlsock.%d", test_helpers.TmpDir, i)
test_helpers.ResetTmpDir(createDirIV)
opts := []string{"-zerokey", "-ctlsock", ctlsockPath}
//opts = append(opts, "-fusedebug")
@@ -96,7 +96,7 @@ func TestMain(m *testing.M) {
t0 := time.Now()
r := m.Run()
if testing.Verbose() {
- fmt.Printf("matrix: run took %v\n", time.Since(t0))
+ fmt.Printf("matrix[%d]: run took %v\n", i, time.Since(t0))
}
// Catch fd leaks in the tests. NOTE: this does NOT catch leaks in
// the gocryptfs FUSE process, but only in the tests that access it!