1
0
Fork 0

Check request results

master
Philip O'Toole 8 months ago committed by GitHub
parent 9634851049
commit b21f185204
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1146,10 +1146,13 @@ func Test_SingleNodeExecuteQueryFreshness(t *testing.T) {
rr := executeQueryRequestFromString("SELECT * FROM foo", proto.QueryRequest_QUERY_REQUEST_LEVEL_NONE,
false, false)
rr.Freshness = mustParseDuration("1ns").Nanoseconds()
_, err = s0.Request(rr)
eqr, err := s0.Request(rr)
if err != nil {
t.Fatalf("failed to query leader node: %s", err.Error())
}
if exp, got := `[[1,"fiona"]]`, asJSON(eqr); exp != got {
t.Fatalf("unexpected results for request\nexp: %s\ngot: %s", exp, got)
}
}
// Test_SingleNodeBackup tests that a Store correctly backs up its data

Loading…
Cancel
Save