Skip to content

Commit

Permalink
improved unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
timonkrebs committed Aug 12, 2024
1 parent cfa0064 commit 7630459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions MemoizR.Tests/ReactiveTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public async Task TestAsyncEnumerable()
Assert.NotNull(m1);
}

[Fact]
[Fact(Timeout = 2000)]
public async Task TestAsyncEnumerableWithBackpressure()
{
var f = new MemoFactory();
Expand Down Expand Up @@ -261,7 +261,8 @@ public async Task TestThreadSafety2()
Assert.True(invocationCount > 1, "Must be invoked more than once");
}

[Fact(Timeout = 2000)]
[Fact(Timeout = 5000)]
[Trait("Category", "Unit")]
public async Task TestThreadSafety3()
{
var f = new MemoFactory();
Expand Down Expand Up @@ -301,7 +302,7 @@ public async Task TestThreadSafety3()
Assert.Equal(82, result2);
}

[Fact(Timeout = 2000)]
[Fact(Timeout = 5000)]
public async Task TestThreadSafety4()
{
var f = new MemoFactory();
Expand Down
1 change: 0 additions & 1 deletion MemoizR.Tests/StructuredConcurrencyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public async Task TestRaceHandling()
}

[Fact]
[Trait("Category", "Unit")]
public async Task TestMultipleMapHandling()
{
var f = new MemoFactory();
Expand Down

0 comments on commit 7630459

Please sign in to comment.