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