File tree 1 file changed +10
-17
lines changed
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)
85
85
}
86
86
87
87
[Fact ]
88
- public void TestcontainersTest ()
88
+ public async Task HealthTest ()
89
89
{
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
105
94
.Should ()
106
- .Be (TestcontainersStates .Running );
95
+ .Be (HubConnectionState .Connected );
96
+
97
+ var result = await client .InvokeAsync <string >(" Health" );
98
+ result .Should ()
99
+ .Be (" Healthy" );
107
100
}
108
101
}
109
102
```
You can’t perform that action at this time.
0 commit comments