This unexpected EOF is really quite expected

This commit is contained in:
Jakob Borg 2015-09-24 14:19:21 +02:00
parent 46d4f6037d
commit 43189dfe3a

View File

@ -108,7 +108,7 @@ func TestReset(t *testing.T) {
// Reset all indexes
log.Println("Reset DB...")
bs, err = p.Post("/rest/system/reset", nil)
if err != nil {
if err != nil && err != io.ErrUnexpectedEOF {
t.Fatalf("Failed to reset indexes (all): %v (%s)", err, bytes.TrimSpace(bs))
}