diff options
| author | Dan Engelbrecht <[email protected]> | 2026-04-21 10:43:57 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-21 10:43:57 +0200 |
| commit | c4d4f9f1366e7ba33b587e80558b204cfdf62c59 (patch) | |
| tree | e43d36eecfda95e5cafc0ccc7bedeabe788d9dd3 /src/zenserver-test/hub-tests.cpp | |
| parent | builds download "default" part if nothing is specified (#994) (diff) | |
| download | archived-zen-c4d4f9f1366e7ba33b587e80558b204cfdf62c59.tar.xz archived-zen-c4d4f9f1366e7ba33b587e80558b204cfdf62c59.zip | |
async consul register/deregister (#992)
- Improvement: Hub Consul service registration and deregistration are now dispatched on a dedicated background thread so instance state transitions no longer stall when the Consul agent is slow or unreachable
Diffstat (limited to 'src/zenserver-test/hub-tests.cpp')
| -rw-r--r-- | src/zenserver-test/hub-tests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenserver-test/hub-tests.cpp b/src/zenserver-test/hub-tests.cpp index 35a840e5d..e83e18446 100644 --- a/src/zenserver-test/hub-tests.cpp +++ b/src/zenserver-test/hub-tests.cpp @@ -663,10 +663,11 @@ TEST_CASE("hub.consul.provision.registration") Result = HubClient.Post("modules/testmod/deprovision"); REQUIRE(Result); REQUIRE(WaitForConsulService(Client, "testmod", false, 10000)); + REQUIRE(WaitForModuleGone(HubClient, "testmod")); { HttpClient ModClient(fmt::format("http://localhost:{}", ModulePort), kFastTimeout); - CHECK(!ModClient.Get("/health/")); + CHECK(WaitForPortUnreachable(ModClient)); } } |