Skip to content

Commit fb848c6

Browse files
codefromthecryptzirain
authored andcommitted
polish
Signed-off-by: Adrian Cole <[email protected]>
1 parent 636057c commit fb848c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/infrastructure/host/proxy_infra_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ func TestInfra_Close(t *testing.T) {
165165
})
166166

167167
// Verify all proxies are stopped
168-
count = 0
169-
i.proxyContextMap.Range(func(key, value interface{}) bool {
170-
count++
171-
return true
168+
found := false
169+
i.proxyContextMap.Range(func(key, value any) bool {
170+
found = true
171+
return false
172172
})
173-
require.Equal(t, 0, count, "expected all proxies to be stopped")
173+
require.False(t, found, "expected all proxies to be stopped")
174174
}
175175

176176
func TestExtractSemver(t *testing.T) {

0 commit comments

Comments
 (0)