Skip to content

Commit 0d2fd60

Browse files
Temp fix for the race condition during the tests. (#7021)
* temp fixing the race condition during the tests * making db tests sequential
1 parent 4d4f7dc commit 0d2fd60

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/Microsoft.ML.Tests/DatabaseLoaderTests.cs

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
namespace Microsoft.ML.Tests
2222
{
23+
[CollectionDefinition(nameof(NoParallelizationDefinition), DisableParallelization = true)]
24+
public class NoParallelizationDefinition { }
25+
[Collection(nameof(NoParallelizationDefinition))]
2326
public class DatabaseLoaderTests : BaseTestClass
2427
{
2528
public DatabaseLoaderTests(ITestOutputHelper output)

test/Microsoft.ML.Tests/Transformers/WordEmbeddingsTests.cs

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
namespace Microsoft.ML.Tests.Transformers
1414
{
15+
[CollectionDefinition(nameof(NoParallelizationDefinition), DisableParallelization = true)]
16+
public class NoParallelizationDefinition { }
17+
[Collection(nameof(NoParallelizationDefinition))]
1518
public sealed class WordEmbeddingsTests : TestDataPipeBase
1619
{
1720
public WordEmbeddingsTests(ITestOutputHelper helper)

0 commit comments

Comments
 (0)