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.
---
 internal/fusefrontend/dircache.go | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'internal/fusefrontend')

diff --git a/internal/fusefrontend/dircache.go b/internal/fusefrontend/dircache.go
index 7e80ddc..5c8b760 100644
--- a/internal/fusefrontend/dircache.go
+++ b/internal/fusefrontend/dircache.go
@@ -14,6 +14,8 @@ import (
 const (
 	// Number of entries in the dirCache. Three entries work well for two
 	// (probably also three) parallel tar extracts (hit rate around 92%).
+	// Keen in sync with test_helpers.maxCacheFds !
+	// TODO: How to share this constant without causing in import cycle?
 	dirCacheSize = 3
 	// Enable Lookup/Store/Clear debug messages
 	enableDebugMessages = false
-- 
cgit v1.2.3