From 7cd46ea184e9f0a62e3f54870a8583fedaa73d00 Mon Sep 17 00:00:00 2001 From: Pardhu Konakanchi Date: Tue, 8 Jul 2025 11:29:01 -0400 Subject: [PATCH] revert range changes in test --- xds/internal/balancer/outlierdetection/balancer_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xds/internal/balancer/outlierdetection/balancer_test.go b/xds/internal/balancer/outlierdetection/balancer_test.go index b7434048a..163c126ec 100644 --- a/xds/internal/balancer/outlierdetection/balancer_test.go +++ b/xds/internal/balancer/outlierdetection/balancer_test.go @@ -762,7 +762,7 @@ func (s) TestUpdateAddresses(t *testing.T) { defer cancel() // Transition SubConns to READY so that they can register a health listener. - for i := 0; i < 2; i++ { + for range 2 { select { case <-ctx.Done(): t.Fatalf("Timed out waiting for creation of new SubConn.") @@ -1114,7 +1114,7 @@ func (s) TestEjectUnejectSuccessRate(t *testing.T) { // Transition the SubConns to READY so that they can register health // listeners. - for i := 0; i < 3; i++ { + for range 3 { select { case <-ctx.Done(): t.Fatalf("Timed out waiting for creation of new SubConn.") @@ -1380,7 +1380,7 @@ func (s) TestEjectFailureRate(t *testing.T) { // Transition the SubConns to READY so that they can register health // listeners. - for i := 0; i < 3; i++ { + for range 3 { select { case <-ctx.Done(): t.Fatal("Timed out waiting for creation of new SubConn.")