diff --git a/command/agent/agent_test.go b/command/agent/agent_test.go index 939e31cb4c..806c41ebc3 100644 --- a/command/agent/agent_test.go +++ b/command/agent/agent_test.go @@ -10,6 +10,7 @@ import ( "os" "path/filepath" "reflect" + "strings" "sync/atomic" "testing" "time" diff --git a/consul/prepared_query_endpoint_test.go b/consul/prepared_query_endpoint_test.go index 5f686945d7..8189e2293c 100644 --- a/consul/prepared_query_endpoint_test.go +++ b/consul/prepared_query_endpoint_test.go @@ -1808,10 +1808,9 @@ func TestPreparedQuery_Execute(t *testing.T) { QueryOptions: structs.QueryOptions{Token: execToken}, } - var reply structs.PreparedQueryExecuteResponse - shuffled := false for i := 0; i < 10; i++ { + var reply structs.PreparedQueryExecuteResponse if err := msgpackrpc.CallWithCodec(codec1, "PreparedQuery.Execute", &req, &reply); err != nil { t.Fatalf("err: %v", err) }