fix: update params in TestIsPingConnected

This commit is contained in:
dudaodong committed 2023-04-19 17:32:30 +08:00
1 parent 05997603a9
commit f82c4a305d
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -120,7 +120,7 @@ func TestEncodeUrl(t *testing.T) {
func TestIsPingConnected(t *testing.T) {
assert := internal.NewAssert(t, "TestIsPingConnected")
result1 := IsPingConnected("www.baidu.com")
result1 := IsPingConnected("cn.bing.com")
assert.Equal(true, result1)
result2 := IsPingConnected("www.!@#&&&.com")
@@ -130,7 +130,7 @@ func TestIsPingConnected(t *testing.T) {
func TestTelnetConnected(t *testing.T) {
assert := internal.NewAssert(t, "TestTelnetConnected")
result1 := IsTelnetConnected("www.baidu.com", "80")
result1 := IsTelnetConnected("cn.bing.com", "80")
assert.Equal(true, result1)
result2 := IsTelnetConnected("www.baidu.com", "123")