Skip to content

Commit a3e9e7d

Browse files
authored
Fix Go version for Github actions (#31)
1 parent bb980c0 commit a3e9e7d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: actions/setup-go@v2
2020
with:
21-
go-version: 1.17.6
21+
go-version: 1.18
2222

2323
- name: Prepare environment and test
2424
run: |-

ping/tcp/tcp_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func TestPing(t *testing.T) {
11-
ping := tcp.New("google.com", 80, &tcping.Option{})
11+
ping := tcp.New("google.com", 80, &tcping.Option{}, false)
1212
stats := ping.Ping(context.Background())
1313
if !stats.Connected {
1414
t.Fatalf("ping failed, %s", stats.Error)
@@ -17,7 +17,7 @@ func TestPing(t *testing.T) {
1717

1818
func TestPing_Failed(t *testing.T) {
1919

20-
ping := tcp.New("127.0.0.1", 1, &tcping.Option{})
20+
ping := tcp.New("127.0.0.1", 1, &tcping.Option{}, false)
2121
stats := ping.Ping(context.Background())
2222
if stats.Connected {
2323
t.Fatalf("it should be connected refused error")

0 commit comments

Comments
 (0)