From b48edab8969c2a76f2123182af4805aebf8faec0 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 19 Nov 2026 19:31:35 -0800 Subject: [PATCH] test: say why a probe write/read error counts as refused in g2Refused (review nit) Co-Authored-By: Claude Opus 5.5 --- seaweed-block/core/transport/g2_self_fence_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/seaweed-block/core/transport/g2_self_fence_test.go b/seaweed-block/core/transport/g2_self_fence_test.go index 799924132a..2aa4df3edd 100644 --- a/seaweed-block/core/transport/g2_self_fence_test.go +++ b/seaweed-block/core/transport/g2_self_fence_test.go @@ -31,7 +31,9 @@ var g2ProbeLineage = RecoveryLineage{SessionID: 1, Epoch: 1 << 62, EndpointVersi // the connection (refusal) rather than accepting it. Handshake, no timer: an // always-admissible probe follows on the same connection; the listener // handles frames in order, so it either closes the connection (refused) or -// answers the probe after the frame's effect (accepted). +// answers the probe after the frame's effect (accepted). A write or read error +// on the probe counts as refused: the listener is the only side that closes +// this connection, and it closes it only on a refusal. func g2Refused(t *testing.T, addr string, msgType byte, payload []byte) bool { t.Helper() conn := g2Dial(t, addr)