Work on #61: Add support for ICMP

+ Update dependencies
This commit is contained in:
TwinProduction
2020-12-25 00:07:18 -05:00
parent c86173d46f
commit 83a5813daf
1004 changed files with 182274 additions and 64323 deletions

View File

@ -26,3 +26,12 @@ func TestGetHttpClient(t *testing.T) {
t.Error("insecureHTTPClient shouldn't have been nil, since it has been called once")
}
}
func TestCanPing(t *testing.T) {
if !CanPing("127.0.0.1") {
t.Error("expected true")
}
if CanPing("256.256.256.256") {
t.Error("expected false")
}
}