Attempt to fix selenium CI test flakiness 10

This commit is contained in:
2025-11-16 00:04:21 +01:00
parent d6b81aa362
commit 89dea08275

View File

@@ -34,6 +34,8 @@ public class RetryTestCase : XunitTestCase
var summary = new RunSummary(); var summary = new RunSummary();
for (int i = 1; i <= _maxRetries; i++) for (int i = 1; i <= _maxRetries; i++)
{
try
{ {
var result = await base.RunAsync( var result = await base.RunAsync(
diagnosticMessageSink, messageBus, constructorArguments, aggregator, cancellationTokenSource); diagnosticMessageSink, messageBus, constructorArguments, aggregator, cancellationTokenSource);
@@ -42,6 +44,7 @@ public class RetryTestCase : XunitTestCase
if (result.Failed == 0) if (result.Failed == 0)
break; // success, stop retrying break; // success, stop retrying
} catch (Exception) {}
} }
return summary; return summary;