Skip to content

Commit d0b9e35

Browse files
committed
fixing flaky tests in SearchTest by avoiding parallel runs
1 parent 31e478f commit d0b9e35

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
using Xunit;
2+
3+
namespace NRedisStack.Tests;
4+
5+
[CollectionDefinition("NoParallelization", DisableParallelization = true)]
6+
public class NoParallelizationCollection { }

tests/NRedisStack.Tests/Search/SearchTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
namespace NRedisStack.Tests.Search;
1414

15+
[Collection("NoParallelization")]
1516
public class SearchTests : AbstractNRedisStackTest, IDisposable
1617
{
1718
// private readonly string key = "SEARCH_TESTS";

0 commit comments

Comments
 (0)