From 8ce98ceae30b839a2f05ac95cd074d6ae5a93d25 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Tue, 6 Jul 2021 12:28:03 +0200 Subject: [PATCH] Fix: tests: close datastore on cluster node shutdown. This resulted in too-many-files-open when running with leveldb. --- ipfscluster_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ipfscluster_test.go b/ipfscluster_test.go index 1217c9a3..295575d1 100644 --- a/ipfscluster_test.go +++ b/ipfscluster_test.go @@ -423,6 +423,7 @@ func shutdownCluster(t *testing.T, c *Cluster, m *test.IpfsMock) { } c.dht.Close() c.host.Close() + c.datastore.Close() m.Close() }