wip
This commit is contained in:
@@ -9,10 +9,8 @@ import (
|
||||
|
||||
func TestSynPacket(t *testing.T) {
|
||||
p := packetSyn{
|
||||
TraceID: newTraceID(),
|
||||
//SentAt: time.Now().UnixMilli(),
|
||||
//SharedKeyType: 1,
|
||||
Direct: true,
|
||||
TraceID: 2342342345,
|
||||
Direct: true,
|
||||
}
|
||||
rand.Read(p.SharedKey[:])
|
||||
|
||||
@@ -32,7 +30,7 @@ func TestSynPacket(t *testing.T) {
|
||||
|
||||
func TestAckPacket(t *testing.T) {
|
||||
p := packetAck{
|
||||
TraceID: newTraceID(),
|
||||
TraceID: 123213,
|
||||
ToAddr: netip.AddrPortFrom(netip.AddrFrom4([4]byte{1, 2, 3, 4}), 234),
|
||||
}
|
||||
|
||||
@@ -52,7 +50,7 @@ func TestAckPacket(t *testing.T) {
|
||||
|
||||
func TestProbePacket(t *testing.T) {
|
||||
p := packetProbe{
|
||||
TraceID: newTraceID(),
|
||||
TraceID: 12345,
|
||||
}
|
||||
|
||||
buf := p.Marshal(newBuf())
|
||||
|
||||
Reference in New Issue
Block a user