Fix: tests: close datastore on cluster node shutdown.

This resulted in too-many-files-open when running with leveldb.
This commit is contained in:
Hector Sanjuan 2021-07-06 12:28:03 +02:00
parent f7a2e4a3fc
commit 8ce98ceae3

View File

@ -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()
}