0
0
Fork 0

try to close indexes at end of http handler test

This commit is contained in:
Marty Schoch 2016-02-09 16:26:03 -05:00
parent 208b700e17
commit 1006bf54b4
1 changed files with 11 additions and 0 deletions

View File

@ -701,4 +701,15 @@ func TestHandlers(t *testing.T) {
}
}
}
// close indexes
for _, indexName := range IndexNames() {
index := UnregisterIndexByName(indexName)
if index != nil {
err := index.Close()
if err != nil {
t.Errorf("error closing index %s: %v", indexName, err)
}
}
}
}