1
0
Fork 0

Better test

master
Philip O'Toole 8 months ago
parent b9a1fdb273
commit 7888122a63

@ -1085,7 +1085,7 @@ func Test_QueryShouldTimeout(t *testing.T) {
t.Fatalf("expected one result, got %d: %s", len(r), asJSON(r))
}
res := r[0]
if !strings.Contains(res.Error, "query timeout") {
if !strings.Contains(res.Error, ErrQueryTimeout.Error()) {
t.Fatalf("expected query timeout, got %s", res.Error)
}
@ -1101,7 +1101,7 @@ func Test_QueryShouldTimeout(t *testing.T) {
t.Fatalf("expected one result, got %d: %s", len(r), asJSON(r))
}
res = r[0]
if !strings.Contains(res.Error, "query timeout") {
if !strings.Contains(res.Error, ErrQueryTimeout.Error()) {
t.Fatalf("expected query timeout, got %s", res.Error)
}
}

Loading…
Cancel
Save