From 3be372c489cf6fe441295ad158a5b71bca5c0676 Mon Sep 17 00:00:00 2001 From: Spike Curtis Date: Tue, 30 Jan 2024 09:52:55 +0400 Subject: [PATCH] fix: stop failing agent_test.go on error logs --- agent/agent_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/agent_test.go b/agent/agent_test.go index ca30bf3b98280..596471b49f603 100644 --- a/agent/agent_test.go +++ b/agent/agent_test.go @@ -35,7 +35,6 @@ import ( "github.com/spf13/afero" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/valyala/fasthttp/fasthttputil" "go.uber.org/goleak" "go.uber.org/mock/gomock" "golang.org/x/crypto/ssh" @@ -2028,8 +2027,9 @@ func setupAgent(t *testing.T, metadata agentsdk.Manifest, ptyTimeout time.Durati agent.Agent, ) { logger := slogtest.Make(t, &slogtest.Options{ - // we get this error when closing the Agent API - IgnoredErrorIs: append(slogtest.DefaultIgnoredErrorIs, fasthttputil.ErrInmemoryListenerClosed), + // Agent can drop errors when shutting down, and some, like the + // fasthttplistener connection closed error, are unexported. + IgnoreErrors: true, }).Leveled(slog.LevelDebug) if metadata.DERPMap == nil { metadata.DERPMap, _ = tailnettest.RunDERPAndSTUN(t) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy