Skip to content

Commit de0cea3

Browse files
committed
readme
1 parent 6b87418 commit de0cea3

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

README.md

+10-17
Original file line numberDiff line numberDiff line change
@@ -85,25 +85,18 @@ public class HealthTests(ITestOutputHelper log, TestApp testApplication)
8585
}
8686

8787
[Fact]
88-
public void TestcontainersTest()
88+
public async Task HealthTest()
8989
{
90-
var azurite = testApplication.GetContainer<AzuriteContainer>();
91-
var postgree = testApplication.GetContainer<PostgreSqlContainer>("postgree");
92-
93-
azurite.GetConnectionString()
94-
.Should()
95-
.NotBeNullOrWhiteSpace();
96-
97-
azurite.State
98-
.Should()
99-
.Be(TestcontainersStates.Running);
100-
101-
postgree.GetConnectionString()
102-
.Should()
103-
.NotBeNullOrWhiteSpace();
104-
postgree.State
90+
var client = testApplication.CreateSignalRClient("/healthHub");
91+
await client.StartAsync();
92+
93+
client.State
10594
.Should()
106-
.Be(TestcontainersStates.Running);
95+
.Be(HubConnectionState.Connected);
96+
97+
var result = await client.InvokeAsync<string>("Health");
98+
result.Should()
99+
.Be("Healthy");
107100
}
108101
}
109102
```

0 commit comments

Comments
 (0)