aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver-test/hub-tests.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-04-21 10:43:57 +0200
committerGitHub Enterprise <[email protected]>2026-04-21 10:43:57 +0200
commitc4d4f9f1366e7ba33b587e80558b204cfdf62c59 (patch)
treee43d36eecfda95e5cafc0ccc7bedeabe788d9dd3 /src/zenserver-test/hub-tests.cpp
parentbuilds download "default" part if nothing is specified (#994) (diff)
downloadarchived-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.cpp3
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));
}
}