diff --git a/packages/server/tests/acceptance/rpc.spec.ts b/packages/server/tests/acceptance/rpc.spec.ts index 5918a5e00..b882a8d4a 100644 --- a/packages/server/tests/acceptance/rpc.spec.ts +++ b/packages/server/tests/acceptance/rpc.spec.ts @@ -809,7 +809,7 @@ describe('RPC Server Acceptance Tests', function () { it('should call eth_gasPrice', async function () { const res = await relay.call('eth_gasPrice', []); expect(res).to.exist; - if (process.env.LOCAL_NODE) { + if (process.env.LOCAL_NODE && process.env.LOCAL_NODE !== 'false') { expect(res).be.equal(ethers.utils.hexValue(Assertions.defaultGasPrice)); } else { @@ -1069,7 +1069,7 @@ describe('RPC Server Acceptance Tests', function () { }); // Only run the following tests against a local node since they only work with the genesis account - if (process.env.LOCAL_NODE) { + if (process.env.LOCAL_NODE && process.env.LOCAL_NODE !== 'false') { describe('Gas Price related RPC endpoints', () => { let lastBlockBeforeUpdate; let lastBlockAfterUpdate; diff --git a/packages/server/tests/helpers/assertions.ts b/packages/server/tests/helpers/assertions.ts index 48746b565..2ec4100ba 100644 --- a/packages/server/tests/helpers/assertions.ts +++ b/packages/server/tests/helpers/assertions.ts @@ -61,7 +61,7 @@ export default class Assertions { // Assert static values expect(relayResponse.baseFeePerGas).to.exist; - if (process.env.LOCAL_NODE) { + if (process.env.LOCAL_NODE && process.env.LOCAL_NODE !== 'false') { expect(relayResponse.baseFeePerGas).to.be.equal(ethers.utils.hexValue(this.defaultGasPrice)); } else {