Skip to content

Commit

Permalink
test(fix): use sequenctial run to fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff-Tian committed May 7, 2024
1 parent faef0cd commit bd88180
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions Host.Main.Test/Host.Main.Test/IntegrationTest/BasicTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace Host.Main.Test.IntegrationTest;

[Collection("Sequential")]
public class BasicTest : IClassFixture<WebApplicationFactory<Program>>
{
private readonly WebApplicationFactory<Program> _factory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace Host.Main.Test.IntegrationTest;

[Collection("Sequential")]
public class IdTokenTest : IClassFixture<WebApplicationFactory<Program>>
{
private readonly ITestOutputHelper _testOutputHelper;
Expand Down
1 change: 1 addition & 0 deletions Host.Main.Test/Host.Main.Test/IntegrationTest/PKCETest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace Host.Main.Test.IntegrationTest;

[Collection("Sequential")]
public class PKCETest : IClassFixture<WebApplicationFactory<Program>>
{
private readonly ITestOutputHelper _testOutputHelper;
Expand Down
11 changes: 0 additions & 11 deletions Host.Main.Test/Host.Main.Test/IntegrationTest/READM.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Xunit;

namespace Host.Main.Test.IntegrationTest;

[CollectionDefinition("Sequential", DisableParallelization = true)]
public class SequentialCollectionDefinition
{

}
1 change: 1 addition & 0 deletions Host.Main.Test/Host.Main.Test/IntegrationTest/XsrfTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Host.Main.Test.IntegrationTest;

[Collection("Sequential")]
public class XsrfTest : IClassFixture<WebApplicationFactory<Program>>
{
private readonly HttpClient _client;
Expand Down

0 comments on commit bd88180

Please sign in to comment.