mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
test: require registration cure in holder host refusal
This commit is contained in:
1 parent
4ac3f3fa70
commit
07bbe359c1
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user