From 6809ceb44f55b4b03779e9129169abb8f2b9a163 Mon Sep 17 00:00:00 2001 From: Felipe Andrade Date: Thu, 27 Jul 2023 14:16:09 -0700 Subject: [PATCH] fix test --- proxyd/proxyd/integration_tests/ws_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxyd/proxyd/integration_tests/ws_test.go b/proxyd/proxyd/integration_tests/ws_test.go index fdaae0b..bd41991 100644 --- a/proxyd/proxyd/integration_tests/ws_test.go +++ b/proxyd/proxyd/integration_tests/ws_test.go @@ -12,7 +12,6 @@ import ( "github.com/ethereum/go-ethereum/log" "github.com/gorilla/websocket" "github.com/stretchr/testify/require" - "github.com/syndtr/goleveldb/leveldb/opt" ) // TestConcurrentWSPanic tests for a panic in the websocket proxy @@ -306,7 +305,8 @@ func TestWSClientExceedReadLimit(t *testing.T) { t.Fatalf("backend should not get the large message") }) - clientReq := "{\"id\": 1, \"method\": \"eth_subscribe\", \"params\": [\"" + strings.Repeat("barf", 256*opt.KiB+1) + "\"]}" + payload := strings.Repeat("barf", 1024*1024) + clientReq := "{\"id\": 1, \"method\": \"eth_subscribe\", \"params\": [\"" + payload + "\"]}" err = client.WriteMessage( websocket.TextMessage, []byte(clientReq),