Skip to content

Commit

Permalink
Fix : I missed a method call
Browse files Browse the repository at this point in the history
  • Loading branch information
OBlackmon3 committed Oct 27, 2024
1 parent 0cedcac commit 46e538b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpc/evm_json_rpc_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func TestEvmJsonRpcCache_Set(t *testing.T) {

req := common.NewNormalizedRequest([]byte(`{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":["0x123"],"id":1}`))
resp := common.NewNormalizedResponse().WithBody([]byte(`{"hash":"0x123","blockNumber":null}`))
mockConnector.On("IsMethodIgnored", mock.AnythingOfType("string")).Return(false)

err := cache.Set(context.Background(), req, resp)

Expand Down Expand Up @@ -111,6 +112,7 @@ func TestEvmJsonRpcCache_Set(t *testing.T) {

req := common.NewNormalizedRequest([]byte(`{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x123","latest"],"id":1}`))
resp := common.NewNormalizedResponse().WithBody([]byte(`"0x1234"`))
mockConnector.On("IsMethodIgnored", mock.AnythingOfType("string")).Return(false)

err := cache.Set(context.Background(), req, resp)

Expand Down

0 comments on commit 46e538b

Please sign in to comment.