Skip to content

Commit 67afcca

Browse files
authored
Merge pull request #1098 from Odonno/fix/surrealdb-tests
fix: disable parallelization of surrealdb conformance tests
2 parents e74979c + 5c1cc62 commit 67afcca

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/CommunityToolkit.Aspire.SurrealDb.Tests/ConformanceTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
namespace CommunityToolkit.Aspire.SurrealDb.Tests;
1111

12+
[CollectionDefinition("Conformance", DisableParallelization = true)]
13+
public class ConformanceCollection;
14+
15+
[Collection("Conformance")]
1216
public class ConformanceTests :
1317
ConformanceTests<SurrealDbClient, SurrealDbClientSettings>,
1418
IClassFixture<SurrealDbContainerFixture>

tests/CommunityToolkit.Aspire.SurrealDb.Tests/SurrealDbContainerFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public async Task InitializeAsync()
5050
Container = new ContainerBuilder()
5151
.WithImage($"{SurrealDbContainerImageTags.Registry}/{SurrealDbContainerImageTags.Image}:{SurrealDbContainerImageTags.Tag}")
5252
.WithPortBinding(_port, true)
53-
.WithWaitStrategy(Wait.ForUnixContainer().UntilHttpRequestIsSucceeded(r => r.ForPort(_port)))
53+
.WithWaitStrategy(Wait.ForUnixContainer().UntilHttpRequestIsSucceeded(r => r.ForPort(_port).ForPath("/health")))
5454
.WithEnvironment("SURREAL_USER", _username)
5555
.WithEnvironment("SURREAL_PASS", _password)
5656
.WithCommand("start", "memory")

0 commit comments

Comments
 (0)