From 2c037cfc3ee0445d67c06ed1be97e661a5865471 Mon Sep 17 00:00:00 2001 From: Maria Ines Parnisari Date: Tue, 28 Nov 2023 12:32:24 -0800 Subject: [PATCH] test: fix TestPeerClientShutdown --- peer_client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer_client_test.go b/peer_client_test.go index 57d5d0a5..43292f04 100644 --- a/peer_client_test.go +++ b/peer_client_test.go @@ -64,7 +64,7 @@ func TestPeerClientShutdown(t *testing.T) { wg := sync.WaitGroup{} wg.Add(threads) // Spawn a whole bunch of concurrent requests to test shutdown in various states - for i := 0; i < threads; i++ { + for j := 0; j < threads; j++ { go func() { defer wg.Done() ctx := context.Background()