1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-13 09:12:28 +08:00

fix: update params in TestIsPingConnected

This commit is contained in:
dudaodong
2023-04-19 17:35:17 +08:00
parent f82c4a305d
commit e90283c3f9
2 changed files with 4 additions and 4 deletions

View File

@@ -180,7 +180,7 @@ func ExampleConvertMapToQueryString() {
}
func ExampleIsPingConnected() {
result1 := IsPingConnected("cn.bing.com")
result1 := IsPingConnected("bing.com")
result2 := IsPingConnected("www.!@#&&&.com")
fmt.Println(result1)
@@ -192,7 +192,7 @@ func ExampleIsPingConnected() {
}
func ExampleIsTelnetConnected() {
result1 := IsTelnetConnected("cn.bing.com", "80")
result1 := IsTelnetConnected("bing.com", "80")
result2 := IsTelnetConnected("www.baidu.com", "123")
fmt.Println(result1)