fix: kcp 协议内部日志细节
This commit is contained in:
@@ -77,6 +77,9 @@ func assertKCPPacketRecord(t *testing.T, records []KCPPacketDebugRecord, wantEve
|
||||
if record.KCPConv == nil {
|
||||
t.Fatalf("record %s missing kcp_conv: %+v", wantEvent, record)
|
||||
}
|
||||
if len(record.Segments) == 0 {
|
||||
t.Fatalf("record %s missing parsed segments: %+v", wantEvent, record)
|
||||
}
|
||||
if wantUDPTXID && record.UDPTXID == nil {
|
||||
t.Fatalf("record %s missing udp_tx_id: %+v", wantEvent, record)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user