Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
add test for block height in future
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteHerrmann committed Jan 27, 2023
1 parent 95c3b94 commit ef5bdaf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rpc/backend/account_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,18 @@ func (suite *BackendTestSuite) TestGetTransactionCount() {
true,
hexutil.Uint64(0),
},
{
"fail - block height is in the future",
false,
rpctypes.NewBlockNumber(big.NewInt(10000)),
func(addr common.Address, bn rpctypes.BlockNumber) {
var header metadata.MD
queryClient := suite.backend.queryClient.QueryClient.(*mocks.EVMQueryClient)
RegisterParams(queryClient, &header, 1)
},
false,
hexutil.Uint64(0),
},
// TODO: Error mocking the GetAccount call - problem with Any type
//{
// "pass - returns the number of transactions at the given address up to the given block number",
Expand Down

0 comments on commit ef5bdaf

Please sign in to comment.