diff --git a/eth/rpc/rpcapi/eth_api_test.go b/eth/rpc/rpcapi/eth_api_test.go index 2761c0f55..055cdecfe 100644 --- a/eth/rpc/rpcapi/eth_api_test.go +++ b/eth/rpc/rpcapi/eth_api_test.go @@ -108,7 +108,7 @@ func (s *NodeSuite) Test_BlockNumber() { s.NoError(err) // It might be off by 1 block in either direction. blockDiff := networkBlockNumber - int64(ethBlockNumber) - s.LessOrEqualf(blockDiff, 2, "networkBlockNumber %d, ethBlockNumber %d", + s.Truef(blockDiff <= 2, "networkBlockNumber %d, ethBlockNumber %d", networkBlockNumber, ethBlockNumber, ) }