Skip to content

Commit

Permalink
Fix websocket ping random failed on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
samanhappy committed Jan 12, 2024
1 parent 707e216 commit 179e100
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion probe/websocket/ws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ func TestWSPing(t *testing.T) {
Headers: test.Headers,
}
ws.Config(global.ProbeSettings{})
ok, _ := ws.DoProbe()
ok, err := ws.DoProbe()
assert.Nilf(t, err, fmt.Sprintf("case %d", i))
assert.Equalf(t, test.Want, ok, fmt.Sprintf("case %d", i))

}
Expand Down

0 comments on commit 179e100

Please sign in to comment.