diff --git a/udp/udp_linux_fixes_test.go b/udp/udp_linux_fixes_test.go index 51720392..b3a59d2d 100644 --- a/udp/udp_linux_fixes_test.go +++ b/udp/udp_linux_fixes_test.go @@ -4,7 +4,6 @@ package udp import ( "encoding/binary" - "io" "log/slog" "net" "net/netip" @@ -89,7 +88,7 @@ func TestParseRecvCmsgOuterECNFamily(t *testing.T) { } func testLogger() *slog.Logger { - return slog.New(slog.NewTextHandler(io.Discard, nil)) + return slog.New(slog.DiscardHandler) } // TestWriteBatchBadFamilyDeliversOthers is the H3 regression: a batch that