Skip to content

Commit

Permalink
Temp fix for the race condition during the tests. (dotnet#7021)
Browse files Browse the repository at this point in the history
* temp fixing the race condition during the tests

* making db tests sequential
  • Loading branch information
michaelgsharp authored Feb 21, 2024
1 parent 4d4f7dc commit 0d2fd60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Microsoft.ML.Tests/DatabaseLoaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@

namespace Microsoft.ML.Tests
{
[CollectionDefinition(nameof(NoParallelizationDefinition), DisableParallelization = true)]
public class NoParallelizationDefinition { }
[Collection(nameof(NoParallelizationDefinition))]
public class DatabaseLoaderTests : BaseTestClass
{
public DatabaseLoaderTests(ITestOutputHelper output)
Expand Down
3 changes: 3 additions & 0 deletions test/Microsoft.ML.Tests/Transformers/WordEmbeddingsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

namespace Microsoft.ML.Tests.Transformers
{
[CollectionDefinition(nameof(NoParallelizationDefinition), DisableParallelization = true)]
public class NoParallelizationDefinition { }
[Collection(nameof(NoParallelizationDefinition))]
public sealed class WordEmbeddingsTests : TestDataPipeBase
{
public WordEmbeddingsTests(ITestOutputHelper helper)
Expand Down

0 comments on commit 0d2fd60

Please sign in to comment.