mirror of https://github.com/grpc/grpc-go.git
revert range changes in test
This commit is contained in:
parent
394b6a5b93
commit
7cd46ea184
|
|
@ -762,7 +762,7 @@ func (s) TestUpdateAddresses(t *testing.T) {
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
// Transition SubConns to READY so that they can register a health listener.
|
// Transition SubConns to READY so that they can register a health listener.
|
||||||
for i := 0; i < 2; i++ {
|
for range 2 {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
t.Fatalf("Timed out waiting for creation of new SubConn.")
|
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
|
// Transition the SubConns to READY so that they can register health
|
||||||
// listeners.
|
// listeners.
|
||||||
for i := 0; i < 3; i++ {
|
for range 3 {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
t.Fatalf("Timed out waiting for creation of new SubConn.")
|
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
|
// Transition the SubConns to READY so that they can register health
|
||||||
// listeners.
|
// listeners.
|
||||||
for i := 0; i < 3; i++ {
|
for range 3 {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
t.Fatal("Timed out waiting for creation of new SubConn.")
|
t.Fatal("Timed out waiting for creation of new SubConn.")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue