Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

test(wecom): use the normal acceptance window for the fence assertion (#10427)

pseudoyu84973f9e4972
diff --git a/server/internal/integrations/wecom/relay_publish_state_test.go b/server/internal/integrations/wecom/relay_publish_state_test.go
index eb37425738..df14ebeebf 100644
--- a/server/internal/integrations/wecom/relay_publish_state_test.go
+++ b/server/internal/integrations/wecom/relay_publish_state_test.go
@@ -148,8 +148,11 @@ func TestRelayPublish_FenceHoldsAgainstThePublishingReplica(t *testing.T) {
t.Parallel()
relay, dedupe := &fanoutRelay{}, newSharedDedupe()
reg := newSendersRegistry()
+ // Keep the normal acceptance budget, as the no-holder test above does: a
+ // 40ms window leaves the poll 6ms of slack before its backstop context
+ // fires, and a loaded race runner then reports relayUncertain instead.
router := inboxPublishRouter(t, relay, dedupe,
- RelayConfig{AcceptanceWindow: 40 * time.Millisecond},
+ RelayConfig{},
NewOutbound(nil, reg, nil, slog.Default()))
instID := mustTestUUID(t)