Skip to content

Commit cf1cc6f

Browse files
committed
Extending timeout for Grid to start.
1 parent c6c05e5 commit cf1cc6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/dotnet/SeleniumDocs/BaseTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private static int GetFreeTcpPort()
8787

8888
private async Task EnsureGridIsRunningAsync()
8989
{
90-
DateTime timeout = DateTime.Now.Add(TimeSpan.FromSeconds(30));
90+
DateTime timeout = DateTime.Now.Add(TimeSpan.FromSeconds(240));
9191
bool isRunning = false;
9292
HttpClient client = new HttpClient();
9393

@@ -102,12 +102,12 @@ private async Task EnsureGridIsRunningAsync()
102102
}
103103
else
104104
{
105-
await Task.Delay(500);
105+
await Task.Delay(1000);
106106
}
107107
}
108108
catch (HttpRequestException)
109109
{
110-
await Task.Delay(500);
110+
await Task.Delay(1000);
111111
}
112112
}
113113

0 commit comments

Comments
 (0)