1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00
MiraiGo/utils/tcping_test.go
2022-01-15 17:15:27 +08:00

13 lines
166 B
Go

package utils
import (
"testing"
)
func TestPing(t *testing.T) {
r := RunTCPPingLoop("127.0.0.1:23333", 4)
if r.PacketsLoss == r.PacketsSent {
t.Fatal(r)
}
}