Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JukLee0ira committed Feb 6, 2025
1 parent a47a976 commit 5945fe3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rpc/websocket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ func wsPingTestHandler(t *testing.T, conn *websocket.Conn, shutdown, sendPing <-
wantPong = ""

if !timer.Stop() {
<-timer.C
select {
case <-timer.C: // try to drain the channel
default:
}
}
timer.Reset(200 * time.Millisecond)
case <-timer.C:
Expand Down

0 comments on commit 5945fe3

Please sign in to comment.