From cd037299b281da195091a5a5864be361f3ddfb08 Mon Sep 17 00:00:00 2001 From: Mariusz Sabath Date: Thu, 19 Nov 2026 11:31:32 -0500 Subject: [PATCH] test: Pass the store to the two eventually calls parent_test.go still made without it #1984 (9064cbe) gave eventually a *session.Store parameter so it can wait on the store's signal instead of sleeping. Two call sites in parent_test.go, from 23ef75c, still called the three-argument form, so go vet fails on main and every PR merging against it inherits the failure. Both tests hold the store their rows come from; pass it. Assisted-By: Claude (Anthropic AI) Signed-off-by: Mariusz Sabath --- core/listener/forwardproxy/parent_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/listener/forwardproxy/parent_test.go b/core/listener/forwardproxy/parent_test.go index 86548446a..0f541c961 100644 --- a/core/listener/forwardproxy/parent_test.go +++ b/core/listener/forwardproxy/parent_test.go @@ -135,7 +135,7 @@ func TestParent_TunnelRowsCarryTheParent(t *testing.T) { } _ = raw.Close() var tunnel []pipeline.SessionEvent - eventually(t, func() bool { + eventually(t, store, func() bool { tunnel = nil for _, e := range allEvents(t, store) { if e.Tunnel { @@ -226,7 +226,7 @@ func TestParent_RefusalRowCarriesTheParent(t *testing.T) { t.Fatalf("status %d, want 421", resp.StatusCode) } var refused []pipeline.SessionEvent - eventually(t, func() bool { + eventually(t, store, func() bool { refused = nil for _, e := range allEvents(t, store) { // The refusal row names the tunnel's host, not the Host it refused.