Skip to content

Commit

Permalink
Fix connection closure in ws_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
samanhappy committed Jan 12, 2024
1 parent ecf255a commit 9f4d98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probe/websocket/ws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestWSPing(t *testing.T) {
if err != nil {
log.Fatal(err)
}
defer conn.Close()
conn.Close()

testcases := []TestCase{
{URL: "ws://127.0.0.1:18080/right", Timeout: 500 * time.Millisecond, Headers: token, Want: false},
Expand Down

0 comments on commit 9f4d98d

Please sign in to comment.