From 8d90c5e3d5cba48a097aadf9beba61c7a2301d85 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 7 Aug 2025 23:35:35 +0200 Subject: tests: matrix: use unique ctlsock path Because the deletion happens asynchronously, a previous iteration can delete the socket of the next one. --- tests/matrix/main_test.go | 4 ++-- 1 file 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! -- cgit v1.2.3