Skip to content

Commit

Permalink
Fix UITestBase so test failures are shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Oct 9, 2024
1 parent 924f80c commit dabb8b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/OrchardCore.Commerce.Tests.UI/UITestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ protected async Task ExecuteTestAfterSetupAsync(

await Task.WhenAny(testTask, timeoutTask);

if (!testTask.IsCompleted)
if (timeoutTask.IsCompleted)
{
throw new TimeoutException($"The time allotted for the test ({timeoutValue}) was exceeded.");
}

await testTask;
}

protected override Task ExecuteTestAsync(
Expand Down

0 comments on commit dabb8b9

Please sign in to comment.