Skip to content

Commit

Permalink
chore: disable parallelization for FixedSizeObjectPool tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Confusingboat committed Mar 29, 2024
1 parent 13b982a commit 78ebae0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Ephemerally.Redis.Tests/FixedSizeObjectPoolTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace Ephemerally.Redis.Tests;

[Collection(FixedSizeObjectPoolTestCollection.Name)]
public class FixedSizeObjectPoolTests
{
private const int TestTimeout = 5;
Expand Down Expand Up @@ -162,4 +163,10 @@ public async Task GetWhere_should_wait_for_first_available_matching_object()
actual.ShouldBe(2);
await task1;
}
}

[CollectionDefinition(Name, DisableParallelization = true)]
public class FixedSizeObjectPoolTestCollection
{
public const string Name = nameof(FixedSizeObjectPoolTestCollection);
}

0 comments on commit 78ebae0

Please sign in to comment.