Skip to content

Commit 7404bbb

Browse files
committed
Revert "Extend test timeout to 10 seconds."
This reverts commit 5e1a004.
1 parent 2514e74 commit 7404bbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

balancer/grpclb/grpclb_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ func TestBalancerDisconnects(t *testing.T) {
661661
lbs[0].Stop()
662662
// Stop balancer[0], balancer[1] should be used by grpclb.
663663
// Check peer address to see if that happened.
664-
for i := 0; i < 10000; i++ {
664+
for i := 0; i < 1000; i++ {
665665
if _, err := testC.EmptyCall(context.Background(), &testpb.Empty{}, grpc.WaitForReady(true), grpc.Peer(&p)); err != nil {
666666
t.Fatalf("%v.EmptyCall(_, _) = _, %v, want _, <nil>", testC, err)
667667
}
@@ -670,7 +670,7 @@ func TestBalancerDisconnects(t *testing.T) {
670670
}
671671
time.Sleep(time.Millisecond)
672672
}
673-
t.Fatalf("No RPC sent to second backend after 10 second")
673+
t.Fatalf("No RPC sent to second backend after 1 second")
674674
}
675675

676676
func TestFallback(t *testing.T) {

0 commit comments

Comments
 (0)