From e1dd68cfb75eb1065538cb3f0dfe9a181c66ea46 Mon Sep 17 00:00:00 2001 From: Hai Huang Date: Thu, 19 Nov 2026 11:32:54 -0500 Subject: [PATCH] fix: Pass the store to eventually in parent_test.go PR #1984 added a store argument to the eventually test helper and changed every caller that existed then. PR #1995 added parent_test.go on a base without #1984, so its two calls use the old signature. Each PR passed CI alone. After both merged, go vet on main fails: parent_test.go:146:24: not enough arguments in call to eventually Assisted-By: Claude (Anthropic AI) Signed-off-by: Hai Huang --- 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.