mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-10-22 06:50:11 +08:00
feat: feat: optimize code and remove detect conflict interface
This commit is contained in:
@@ -148,7 +148,6 @@ func TestPatchAnnotation(t *testing.T) {
|
||||
|
||||
func TestPing(t *testing.T) {
|
||||
ip := "10.233.98.197"
|
||||
ping, _ := Ping(ip)
|
||||
pinger, err := probing.NewPinger(ip)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
@@ -159,5 +158,5 @@ func TestPing(t *testing.T) {
|
||||
panic(err)
|
||||
}
|
||||
stats := pinger.Statistics() // get send/receive/duplicate/rtt stats
|
||||
fmt.Println(ping)
|
||||
fmt.Println(stats)
|
||||
}
|
||||
|
Reference in New Issue
Block a user