[autofile] include call to group#Close in tests

This commit is contained in:
Anton Kaliaev 2018-06-06 11:52:59 +04:00
parent 8bbe43aa33
commit f0c44d1bd0
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ func createTestGroup(t *testing.T, headSizeLimit int64) *Group {
}
func destroyTestGroup(t *testing.T, g *Group) {
g.Close()
err := os.RemoveAll(g.Dir)
require.NoError(t, err, "Error removing test Group directory")
}