File tree Expand file tree Collapse file tree 1 file changed +10
-17
lines changed
Expand file tree Collapse file tree 1 file changed +10
-17
lines changed Original file line number Diff line number Diff 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```
You can’t perform that action at this time.
0 commit comments