mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
rpc/server: silence deadcode warning
This commit is contained in:
parent
73ecbbb7c6
commit
8322607fd2
1 changed files with 6 additions and 1 deletions
|
@ -16,6 +16,8 @@ import (
|
|||
"go.uber.org/atomic"
|
||||
)
|
||||
|
||||
const testOverflow = false
|
||||
|
||||
func wsReader(t *testing.T, ws *websocket.Conn, msgCh chan<- []byte, isFinished *atomic.Bool) {
|
||||
for {
|
||||
ws.SetReadDeadline(time.Now().Add(time.Second))
|
||||
|
@ -428,7 +430,10 @@ func TestWSClientsLimit(t *testing.T) {
|
|||
// that's going to happen because of network-level buffering, typical
|
||||
// number seen in tests is around ~3500 events, but it's not reliable enough,
|
||||
// thus this test is disabled.
|
||||
func testSubscriptionOverflow(t *testing.T) {
|
||||
func TestSubscriptionOverflow(t *testing.T) {
|
||||
if !testOverflow {
|
||||
return
|
||||
}
|
||||
const blockCnt = notificationBufSize * 5
|
||||
var receivedMiss bool
|
||||
|
||||
|
|
Loading…
Reference in a new issue