From 7c90b52ed98516de357533004645677e66074442 Mon Sep 17 00:00:00 2001 From: John Murret Date: Mon, 3 Jun 2024 16:55:43 -0600 Subject: [PATCH] updated docstring for TestHealthServiceQuery_Fetch_SamenessGroup to note that full behavior for sameness groups is asserted in the consul code base. --- dependency/health_service_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dependency/health_service_test.go b/dependency/health_service_test.go index 677b836b9..2f1c7a0f9 100644 --- a/dependency/health_service_test.go +++ b/dependency/health_service_test.go @@ -691,9 +691,9 @@ func TestHealthServiceQuery_Fetch(t *testing.T) { } } -// TestHealthServiceQuery_Fetch_SamenessGroup tests fetching services with sameness group -// and asserts that failover works when a service in the sameness group fails and consul-template -// reacts to the change. +// TestHealthServiceQuery_Fetch_SamenessGroup ensures that consul-template re-runs when the blocking query updates. +// The different behaviors of the blocking query, e.g. "when a service becomes unhealthy it should failover, +// when it becomes healthy again it should fail back", are tested in the Consul codebase. func TestHealthServiceQuery_Fetch_SamenessGroup(t *testing.T) { // Arrange - set up test data catalog := testClients.Consul().Catalog()