enlarge the dial timeout in a test case because travis might not be able to finish it in time.
This commit is contained in:
@ -235,7 +235,7 @@ func TestReconnectTimeout(t *testing.T) {
|
||||
t.Fatalf("Failed to parse listener address: %v", err)
|
||||
}
|
||||
addr := "localhost:" + port
|
||||
conn, err := grpc.Dial(addr, grpc.WithTimeout(time.Second))
|
||||
conn, err := grpc.Dial(addr, grpc.WithTimeout(5 * time.Second))
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to dial to the server %q: %v", addr, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user