From d8b8232c3c4fa309e11567f6fb42c9642dd9d24c Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 19 Aug 2021 08:30:19 +0200 Subject: test_helpers: actually use global testParentDir variable Typo inside doInit. --- tests/test_helpers/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_helpers') diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go index 2a0feb8..87dba0a 100644 --- a/tests/test_helpers/helpers.go +++ b/tests/test_helpers/helpers.go @@ -49,7 +49,7 @@ func doInit() { X255 = string(bytes.Repeat([]byte("X"), 255)) MountInfo = make(map[string]mountInfo) // Something like /tmp/gocryptfs-test-parent-1234 - testParentDir := fmt.Sprintf("%s/gocryptfs-test-parent-%d", os.TempDir(), os.Getuid()) + testParentDir = fmt.Sprintf("%s/gocryptfs-test-parent-%d", os.TempDir(), os.Getuid()) os.MkdirAll(testParentDir, 0755) if !isExt4(testParentDir) { fmt.Printf("test_helpers: warning: testParentDir %q does not reside on ext4, we will miss failures caused by ino reuse\n", testParentDir) -- cgit v1.2.3