From 7c88b93979f5c60d65d5da29ec6304457e8e90e2 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Mon, 1 May 2023 23:07:52 -0400 Subject: [PATCH] Fix race during testing --- store/store_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/store_test.go b/store/store_test.go index 2425f951..88ac10c9 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -1641,7 +1641,7 @@ func Test_MultiNodeStoreAutoRestoreBootstrap(t *testing.T) { // Give the follower some time to catch up. f := func() bool { - qr = queryRequestFromString("SELECT * FROM foo WHERE id=2", false, false) + qr := queryRequestFromString("SELECT * FROM foo WHERE id=2", false, false) qr.Level = command.QueryRequest_QUERY_REQUEST_LEVEL_NONE r, err = s1.Query(qr) if err != nil {