try to close indexes at end of http handler test
This commit is contained in:
parent
208b700e17
commit
1006bf54b4
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue