enlarge the dial timeout in a test case because travis might not be able to finish it in time.

This commit is contained in:
iamqizhao
2015-03-13 00:50:16 -07:00
parent 161cbd7272
commit 51496073b8

View File

@ -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)
}