add strong level test
@@ -779,6 +779,12 @@ func Test_MultiNodeExecuteQueryFreshness(t *testing.T) {
if err != nil {
t.Fatalf("Failed to ignore freshness if level is Weak: %s", err.Error())
}
+ // "Strong" consistency queries with 1 nanosecond freshness should pass, because freshness
+ // is ignored in this case.
+ r, err = s0.Query(&QueryRequest{[]string{`SELECT * FROM foo`}, false, false, Strong, mustParseDuration("1ns")})
+ if err != nil {
+ t.Fatalf("Failed to ignore freshness if level is Strong: %s", err.Error())
+ }
// Kill leader.
s0.Close(true)
