mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
rpc : reset timer when receive a pong every time
This commit is contained in:
parent
e7354f6bc0
commit
8a40a8f0c6
1 changed files with 1 additions and 0 deletions
|
|
@ -249,6 +249,7 @@ func wsPingTestHandler(t *testing.T, conn *websocket.Conn, shutdown, sendPing <-
|
|||
t.Errorf("got pong with wrong data %q", data)
|
||||
}
|
||||
wantPong = ""
|
||||
timer.Reset(200 * time.Millisecond)
|
||||
sendResponse = timer.C
|
||||
case <-sendResponse:
|
||||
t.Logf("server sending response")
|
||||
|
|
|
|||
Loading…
Reference in a new issue