JackDoan 3 bulan lalu
induk
melakukan
e386e290ab
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      udp/udp_linux_fixes_test.go

+ 1 - 2
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