Skip to content

Commit

Permalink
[dotnet] Stabilize cdp network monitoring via increasing default time…
Browse files Browse the repository at this point in the history
…out (#12701)

Stabilize cdp network monitoring via increasing default timeout
  • Loading branch information
nvborisenko committed Sep 7, 2023
1 parent de4d2d5 commit 4dbd6ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotnet/src/webdriver/DevTools/DevToolsSession.cs
Expand Up @@ -66,7 +66,7 @@ public DevToolsSession(string endpointAddress)
throw new ArgumentNullException(nameof(endpointAddress));
}

this.CommandTimeout = TimeSpan.FromSeconds(5);
this.CommandTimeout = TimeSpan.FromSeconds(30);
this.debuggerEndpoint = endpointAddress;
if (endpointAddress.StartsWith("ws:"))
{
Expand Down Expand Up @@ -223,7 +223,7 @@ public async Task<JToken> SendCommand(string commandName, JToken commandParamete

if (!responseWasReceived && throwExceptionIfResponseNotReceived)
{
throw new InvalidOperationException($"A command response was not received: {commandName}");
throw new InvalidOperationException($"A command response was not received: {commandName}, timeout: {millisecondsTimeout.Value}ms");
}

if (this.pendingCommands.TryRemove(message.CommandId, out DevToolsCommandData modified))
Expand Down

0 comments on commit 4dbd6ba

Please sign in to comment.