diff --git a/balancer/endpointsharding/endpointsharding_test.go b/balancer/endpointsharding/endpointsharding_test.go index e41ece3b9..c4afe7ad8 100644 --- a/balancer/endpointsharding/endpointsharding_test.go +++ b/balancer/endpointsharding/endpointsharding_test.go @@ -71,7 +71,7 @@ func (s) TestRotateEndpoints(t *testing.T) { for _, tc := range testCases { t.Run(fmt.Sprint(tc.rval), func(t *testing.T) { - randIntN = func(n int) int { + randIntN = func(int) int { return tc.rval } got := rotateEndpoints(endpoints)