diff --git a/rpc/backend/account_info_test.go b/rpc/backend/account_info_test.go index 5a6d43ceaa..ac6d210393 100644 --- a/rpc/backend/account_info_test.go +++ b/rpc/backend/account_info_test.go @@ -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",