Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialPB committed Dec 10, 2024
1 parent b295b55 commit e87715f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions proxyd/integration_tests/filter_rpc_routing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package integration_tests

import (
"fmt"
"github.com/ethereum-optimism/infra/proxyd"
"github.com/stretchr/testify/require"
"net/http"
"os"
"testing"

"github.com/ethereum-optimism/infra/proxyd"
"github.com/stretchr/testify/require"
)

func TestFilterRpcRouting(t *testing.T) {
Expand Down Expand Up @@ -58,10 +59,14 @@ func TestFilterRpcRouting(t *testing.T) {
res, statusCode, err = client.SendRPC("eth_getFilterChanges", []interface{}{filterId})

require.Equal(t, 2, len(selectedBackend.Requests()))
require.NoError(t, err)
require.Equal(t, 200, statusCode)
RequireEqualJSON(t, []byte(getFilterChangesResponse1), res)

res, statusCode, err = client.SendRPC("eth_getFilterChanges", []interface{}{filterId})

require.Equal(t, 3, len(selectedBackend.Requests()))
require.NoError(t, err)
require.Equal(t, 200, statusCode)
RequireEqualJSON(t, []byte(getFilterChangesResponse2), res)
}

0 comments on commit e87715f

Please sign in to comment.