From 67e9abeb2830c517cbcbbd93de184055b2d4227b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 16 Jul 2026 21:01:01 +0200 Subject: tests/cluster: fix possible fd exhaustion ...and one typo. --- tests/cluster/cluster_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/cluster/cluster_test.go b/tests/cluster/cluster_test.go index fa639b7..70a2a02 100644 --- a/tests/cluster/cluster_test.go +++ b/tests/cluster/cluster_test.go @@ -176,6 +176,10 @@ func TestConcurrentCreate(t *testing.T) { return } syscall.Unlink(path) + + // Close now (not only when the whole loop exists) to avoid exhausting fds. + // Double-close on happy path is harmless: "Close will return an error if it has already been called" + f.Close() } } -- cgit v1.2.3