From 65eded4a229c52258054f7d4e710beb02aedfe93 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 4 Jan 2019 23:50:01 +0100 Subject: tests: bump maxCacheFds to 3 As the dirCache now has 3 entries, the tests should accept up to 3 extra fds without declaring an fd leak. --- tests/test_helpers/mount_unmount.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/test_helpers') diff --git a/tests/test_helpers/mount_unmount.go b/tests/test_helpers/mount_unmount.go index 39f7c77..0a3bc1b 100644 --- a/tests/test_helpers/mount_unmount.go +++ b/tests/test_helpers/mount_unmount.go @@ -123,7 +123,9 @@ func UnmountPanic(dir string) { } // gocryptfs may hold up to maxCacheFds open for caching -const maxCacheFds = 1 +// Keen in sync with fusefrontend.dirCacheSize +// TODO: How to share this constant without causing in import cycle?! +const maxCacheFds = 3 // UnmountErr tries to unmount "dir", retrying 10 times, and returns the // resulting error. -- cgit v1.2.3