Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/server/tests/acceptance/hbarLimiter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ describe('@hbarlimiter HBAR Limiter Acceptance Tests', function () {
});

it('should deploy a large contract and decrease remaining HBAR in limiter when transaction data is large', async function () {
overrideEnvsInMochaDescribe({ TEST_TRANSACTION_RECORD_COST_TOLERANCE: 0.25 });
const initialRemainingHbars = Number(await metrics.get(testConstants.METRICS.REMAINING_HBAR_LIMIT));
expect(initialRemainingHbars).to.be.gt(0);

Expand Down
8 changes: 4 additions & 4 deletions packages/server/tests/acceptance/rpc_batch1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,31 +688,31 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {

it('should not cache "latest" block in "eth_getBlockByNumber" ', async function () {
const blockResult = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_GET_BLOCK_BY_NUMBER, ['latest', false]);
await Utils.wait(1000);
await Utils.wait(2000);

const blockResult2 = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_GET_BLOCK_BY_NUMBER, ['latest', false]);
expect(blockResult).to.not.deep.equal(blockResult2);
});

it('should not cache "finalized" block in "eth_getBlockByNumber" ', async function () {
const blockResult = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_GET_BLOCK_BY_NUMBER, ['finalized', false]);
await Utils.wait(1000);
await Utils.wait(2000);

const blockResult2 = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_GET_BLOCK_BY_NUMBER, ['finalized', false]);
expect(blockResult).to.not.deep.equal(blockResult2);
});

it('should not cache "safe" block in "eth_getBlockByNumber" ', async function () {
const blockResult = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_GET_BLOCK_BY_NUMBER, ['safe', false]);
await Utils.wait(1000);
await Utils.wait(2000);

const blockResult2 = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_GET_BLOCK_BY_NUMBER, ['safe', false]);
expect(blockResult).to.not.deep.equal(blockResult2);
});

it('should not cache "pending" block in "eth_getBlockByNumber" ', async function () {
const blockResult = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_GET_BLOCK_BY_NUMBER, ['pending', false]);
await Utils.wait(1000);
await Utils.wait(2000);

const blockResult2 = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_GET_BLOCK_BY_NUMBER, ['pending', false]);
expect(blockResult).to.not.deep.equal(blockResult2);
Expand Down
Loading