mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Attempt to fix selenium CI test flakiness 10
This commit is contained in:
@@ -34,6 +34,8 @@ public class RetryTestCase : XunitTestCase
|
||||
var summary = new RunSummary();
|
||||
|
||||
for (int i = 1; i <= _maxRetries; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
var result = await base.RunAsync(
|
||||
diagnosticMessageSink, messageBus, constructorArguments, aggregator, cancellationTokenSource);
|
||||
@@ -42,6 +44,7 @@ public class RetryTestCase : XunitTestCase
|
||||
|
||||
if (result.Failed == 0)
|
||||
break; // success, stop retrying
|
||||
} catch (Exception) {}
|
||||
}
|
||||
|
||||
return summary;
|
||||
|
||||
Reference in New Issue
Block a user