|
@@ -4,7 +4,6 @@ package udp
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
"encoding/binary"
|
|
"encoding/binary"
|
|
|
- "io"
|
|
|
|
|
"log/slog"
|
|
"log/slog"
|
|
|
"net"
|
|
"net"
|
|
|
"net/netip"
|
|
"net/netip"
|
|
@@ -89,7 +88,7 @@ func TestParseRecvCmsgOuterECNFamily(t *testing.T) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func testLogger() *slog.Logger {
|
|
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
|
|
// TestWriteBatchBadFamilyDeliversOthers is the H3 regression: a batch that
|