Skip to content

Commit

Permalink
Update expected JSON result in `TestRegressionGetTransactionReceipt()…
Browse files Browse the repository at this point in the history
…` and `TestCallRawResultGetTransactionReceipt()`. Part of #665
  • Loading branch information
Pedro Pombeiro committed Feb 16, 2018
1 parent 3766dfb commit 2764ee0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/e2e/jail/jail_rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (s *JailRPCTestSuite) TestRegressionGetTransactionReceipt() {

// note: transaction hash is assumed to be invalid
got := rpcClient.CallRaw(`{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0xbbebf28d0a3a3cbb38e6053a5b21f08f82c62b0c145a17b1c4313cac3f68ae7c"],"id":7}`)
expected := `{"jsonrpc":"2.0","id":7,"result":null}`
expected := `{"jsonrpc":"2.0","id":7,"error":{"code":-32000,"message":"unknown transaction"}}`
s.Equal(expected, got)
}

Expand Down
2 changes: 1 addition & 1 deletion t/e2e/rpc/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (s *RPCTestSuite) TestCallRawResultGetTransactionReceipt() {
s.NotNil(client)

jsonResult := client.CallRaw(`{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x0ca0d8f2422f62bea77e24ed17db5711a77fa72064cccbb8e53c53b699cd3b34"],"id":5}`)
s.Equal(`{"jsonrpc":"2.0","id":5,"result":null}`, jsonResult)
s.Equal(`{"jsonrpc":"2.0","id":5,"error":{"code":-32000,"message":"unknown transaction"}}`, jsonResult)

s.NoError(s.NodeManager.StopNode())
}
Expand Down

0 comments on commit 2764ee0

Please sign in to comment.