Skip TestUDPPing if production server is down.
This commit is contained in:
parent
891f63fb5c
commit
86a287ec69
1 changed files with 2 additions and 2 deletions
|
@ -39,10 +39,10 @@ func TestUDPPing(t *testing.T) {
|
|||
toPort := "50001"
|
||||
|
||||
pong, err := server.UDPPing(toAddr, toPort)
|
||||
gotCountry := pong.DecodeCountry()
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
t.Skipf("ping failed: %v", err)
|
||||
}
|
||||
gotCountry := pong.DecodeCountry()
|
||||
|
||||
res, err := exec.Command("dig", "@resolver4.opendns.com", "myip.opendns.com", "+short").Output()
|
||||
|
||||
|
|
Loading…
Reference in a new issue