From 468a4017318f7695cf3089522c24b2fd6f81c940 Mon Sep 17 00:00:00 2001 From: FFMMM Date: Thu, 2 Dec 2021 10:46:38 -0800 Subject: [PATCH] Update agent/agent_endpoint_test.go Co-authored-by: Daniel Nephin --- agent/agent_endpoint_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/agent/agent_endpoint_test.go b/agent/agent_endpoint_test.go index 757409870046..9af09429094d 100644 --- a/agent/agent_endpoint_test.go +++ b/agent/agent_endpoint_test.go @@ -5837,11 +5837,8 @@ func TestAgentConnectCALeafCert_good(t *testing.T) { // Test caching for the leaf cert { - fetched := 0 - for { - if fetched == 4 { - break - } + + for fetched := 0; fetched < 4; fetches++ { // Fetch it again resp := httptest.NewRecorder()