Skip to content

Commit

Permalink
fix(test): skip tests that often fail due to timeout happening before…
Browse files Browse the repository at this point in the history
… any renders are complete
  • Loading branch information
egil committed May 17, 2023
1 parent ff3752a commit 6fca097
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ namespace Bunit.Extensions.WaitForHelpers;

public class RenderedFragmentWaitForElementsHelperExtensionsAsyncTest : TestContext
{
private readonly static TimeSpan WaitForTestTimeout = TimeSpan.FromMilliseconds(100);
private readonly static TimeSpan WaitForTestTimeout = TimeSpan.FromMilliseconds(5);

public RenderedFragmentWaitForElementsHelperExtensionsAsyncTest(ITestOutputHelper testOutput)
public RenderedFragmentWaitForElementsHelperExtensionsAsyncTest(ITestOutputHelper testOutput)
{
TestContext.DefaultWaitTimeout = TimeSpan.FromSeconds(30);
Services.AddXunitLogger(testOutput);
Expand Down Expand Up @@ -62,7 +62,8 @@ public async Task Test022()
expected.InnerException.ShouldBeNull();
}

[Fact(DisplayName = "WaitForElements with specific count N throws exception after timeout when cssSelector does not result in N matching elements")]
[Fact(DisplayName = "WaitForElements with specific count N throws exception after timeout when cssSelector does not result in N matching elements",
Skip = "Need to figure out how to make this deterministic.")]
[Trait("Category", "async")]
public async Task Test023()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void Test022()
expected.InnerException.ShouldBeNull();
}

[Fact(DisplayName = "WaitForElements with specific count N throws exception after timeout when cssSelector does not result in N matching elements")]
[Fact(DisplayName = "WaitForElements with specific count N throws exception after timeout when cssSelector does not result in N matching elements", Skip = "Need to figure out how to make this deterministic.")]
[Trait("Category", "sync")]
public void Test023()
{
Expand Down

0 comments on commit 6fca097

Please sign in to comment.