From 07bbe359c157de75c8dc42f1dec3b611086f537b Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sun, 22 Nov 2026 11:13:48 -0800 Subject: [PATCH] test: require registration cure in holder host refusal --- seaweed-block/core/host/master/server_host_identity_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seaweed-block/core/host/master/server_host_identity_test.go b/seaweed-block/core/host/master/server_host_identity_test.go index 645103f1a2..5a2357a4c4 100644 --- a/seaweed-block/core/host/master/server_host_identity_test.go +++ b/seaweed-block/core/host/master/server_host_identity_test.go @@ -244,6 +244,9 @@ func TestWorkspaceHolderRefusedFromAnotherHostAtRenewAckAndStream(t *testing.T) if status.Code(err) != codes.FailedPrecondition || !strings.Contains(status.Convert(err).Message(), "registered on host 127.0.0.1; refused from 127.0.0.2") { t.Fatalf("%s from 127.0.0.2 as node-a: %v, want the host refusal", what, err) } + if !strings.Contains(status.Convert(err).Message(), "register the node by the address it connects from (not loopback) in the cluster spec") { + t.Fatalf("%s refusal has no registration cure: %v", what, err) + } } _, err := wsOther.RenewWorkspaceLease(r.ctx, id) refusedFrom2("renew", err)