diff --git a/packages/server/tests/acceptance/rpc_batch3.spec.ts b/packages/server/tests/acceptance/rpc_batch3.spec.ts index f7b0f71c40..45bd4635d4 100644 --- a/packages/server/tests/acceptance/rpc_batch3.spec.ts +++ b/packages/server/tests/acceptance/rpc_batch3.spec.ts @@ -158,7 +158,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { deploymentBlockHash = transactionReceipt?.blockHash!; }); - it('@release should execute "eth_call" request to Basic contract', async function () { + it.only('@release should execute "eth_call" request to Basic contract', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -170,7 +170,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(BASIC_CONTRACT_PING_RESULT); }); - it('@release should execute "eth_call" request to simulate deploying a contract with `to` field being null', async function () { + it.only('@release should execute "eth_call" request to simulate deploying a contract with `to` field being null', async function () { const callData = { from: accounts[0].address, to: null, @@ -180,7 +180,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(basicContractJson.deployedBytecode); }); - it('@release should execute "eth_call" request to simulate deploying a contract with `to` field being empty/undefined', async function () { + it.only('@release should execute "eth_call" request to simulate deploying a contract with `to` field being empty/undefined', async function () { const callData = { from: accounts[0].address, data: basicContractJson.bytecode, @@ -189,7 +189,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(basicContractJson.deployedBytecode); }); - it('should fail "eth_call" request without data field', async function () { + it.only('should fail "eth_call" request without data field', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -200,7 +200,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq('0x'); // confirm no error }); - it('"eth_call" for non-existing contract address returns 0x', async function () { + it.only('"eth_call" for non-existing contract address returns 0x', async function () { const callData = { from: accounts[0].address, to: Address.NON_EXISTING_ADDRESS, @@ -212,7 +212,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq('0x'); // confirm no error }); - it('should execute "eth_call" without from field', async function () { + it.only('should execute "eth_call" without from field', async function () { const callData = { to: basicContractAddress, gas: numberTo0x(30000), @@ -223,7 +223,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(BASIC_CONTRACT_PING_RESULT); }); - it('should execute "eth_call" without gas field', async function () { + it.only('should execute "eth_call" without gas field', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -234,7 +234,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(BASIC_CONTRACT_PING_RESULT); }); - it('should execute "eth_call" with correct block number', async function () { + it.only('should execute "eth_call" with correct block number', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -248,7 +248,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(BASIC_CONTRACT_PING_RESULT); }); - it('should execute "eth_call" with incorrect block number, SC should not exist yet', async function () { + it.only('should execute "eth_call" with incorrect block number, SC should not exist yet', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -262,7 +262,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq('0x'); }); - it('should execute "eth_call" with incorrect block number as an object, SC should not exist yet', async function () { + it.only('should execute "eth_call" with incorrect block number as an object, SC should not exist yet', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -276,7 +276,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq('0x'); }); - it('should execute "eth_call" with incorrect block hash object, SC should not exist yet', async function () { + it.only('should execute "eth_call" with incorrect block hash object, SC should not exist yet', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -296,7 +296,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq('0x'); }); - it('should execute "eth_call" with correct block hash object', async function () { + it.only('should execute "eth_call" with correct block hash object', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -313,7 +313,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(BASIC_CONTRACT_PING_RESULT); }); - it('should execute "eth_call" with correct block number object', async function () { + it.only('should execute "eth_call" with correct block number object', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -327,7 +327,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(BASIC_CONTRACT_PING_RESULT); }); - it('should execute "eth_call" with both data and input fields', async function () { + it.only('should execute "eth_call" with both data and input fields', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -341,7 +341,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(BASIC_CONTRACT_PING_RESULT); }); - it('should fail to execute "eth_call" with wrong block tag', async function () { + it.only('should fail to execute "eth_call" with wrong block tag', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -353,7 +353,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { await Assertions.assertPredefinedRpcError(errorType, relay.call, false, relay, args); }); - it('should fail to execute "eth_call" with wrong block number', async function () { + it.only('should fail to execute "eth_call" with wrong block number', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -365,7 +365,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { await Assertions.assertPredefinedRpcError(errorType, relay.call, false, relay, args); }); - it('should fail to execute "eth_call" with wrong block hash object', async function () { + it.only('should fail to execute "eth_call" with wrong block hash object', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -380,7 +380,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { await Assertions.assertPredefinedRpcError(errorType, relay.call, false, relay, args); }); - it('should fail to execute "eth_call" with wrong block number object', async function () { + it.only('should fail to execute "eth_call" with wrong block number object', async function () { const callData = { from: accounts[0].address, to: basicContractAddress, @@ -452,7 +452,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { describe(desc.title, () => { before(desc.beforeFunc); - it('001 Should call pureMultiply', async function () { + it.only('001 Should call pureMultiply', async function () { const callData = { ...defaultCallData, data: '0x0ec1551d', @@ -462,7 +462,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq('0x0000000000000000000000000000000000000000000000000000000000000004'); }); - it('002 Should call msgSender', async function () { + it.only('002 Should call msgSender', async function () { const callData = { ...defaultCallData, data: '0xd737d0c7', @@ -472,7 +472,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(`0x${activeAccountAddress.padStart(64, '0')}`); }); - it('003 Should call txOrigin', async function () { + it.only('003 Should call txOrigin', async function () { const callData = { ...defaultCallData, data: '0xf96757d1', @@ -482,7 +482,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq(`0x${activeAccountAddress.padStart(64, '0')}`); }); - it('004 Should call msgSig', async function () { + it.only('004 Should call msgSig', async function () { const callData = { ...defaultCallData, data: '0xec3e88cf', @@ -492,7 +492,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq('0xec3e88cf00000000000000000000000000000000000000000000000000000000'); }); - it('005 Should call addressBalance', async function () { + it.only('005 Should call addressBalance', async function () { const callData = { ...defaultCallData, data: '0x0ec1551d', @@ -502,7 +502,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq('0x0000000000000000000000000000000000000000000000000000000000000004'); }); - it("006 'data' from request body with wrong method signature", async function () { + it.only("006 'data' from request body with wrong method signature", async function () { const callData = { ...defaultCallData, data: '0x3ec4de3800000000000000000000000067d8d32e9bf1a9968a5ff53b87d777aa8ebbee69', @@ -516,7 +516,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ); }); - it("007 'data' from request body with wrong encoded parameter", async function () { + it.only("007 'data' from request body with wrong encoded parameter", async function () { const callData = { ...defaultCallData, data: '0x3ec4de350000000000000000000000000000000000000000000000000000000000000000', @@ -526,7 +526,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq('0x0000000000000000000000000000000000000000000000000000000000000000'); }); - it("008 should work for missing 'from' field", async function () { + it.only("008 should work for missing 'from' field", async function () { const callData = { to: callerAddress, data: '0x0ec1551d', @@ -536,7 +536,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.eq('0x0000000000000000000000000000000000000000000000000000000000000004'); }); - it("009 should work for missing 'to' field", async function () { + it.only("009 should work for missing 'to' field", async function () { const callData = { from: accounts[0].address, data: basicContractJson.bytecode, @@ -548,7 +548,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { // value is processed only when eth_call goes through the mirror node if (!ConfigService.get('ETH_CALL_DEFAULT_TO_CONSENSUS_NODE')) { - it('010 Should call msgValue', async function () { + it.only('010 Should call msgValue', async function () { const callData = { ...defaultCallData, data: '0xddf363d7', @@ -560,7 +560,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { }); // test is pending until fallback workflow to consensus node is removed, because this flow works when calling to consensus - xit('011 Should fail when calling msgValue with more value than available balance', async function () { + xit.only('011 Should fail when calling msgValue with more value than available balance', async function () { const callData = { ...defaultCallData, data: '0xddf363d7', @@ -572,7 +572,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { await Assertions.assertPredefinedRpcError(errorType, relay.call, true, relay, args); }); - it("012 should work for wrong 'from' field", async function () { + it.only("012 should work for wrong 'from' field", async function () { const callData = { from: '0x0000000000000000000000000000000000000000', to: callerAddress, @@ -587,7 +587,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { } }); - it('eth_call contract revert returns 200 http status', async function () { + it.only('eth_call contract revert returns 200 http status', async function () { // preparing the contract data needed for a REVERT const activeAccount = accounts[1]; const callerContract = await Utils.deployContractWithEthers([], callerContractJson, activeAccount.wallet, relay); @@ -637,7 +637,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { }); describe('Contract call reverts', async () => { - it('Returns revert message for pure methods', async () => { + it.only('Returns revert message for pure methods', async () => { const callData = { from: accounts[0].address, to: reverterEvmAddress, @@ -653,7 +653,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ); }); - it('Returns revert message for view methods', async () => { + it.only('Returns revert message for view methods', async () => { const callData = { from: accounts[0].address, to: reverterEvmAddress, @@ -669,7 +669,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ); }); - it('Returns revert reason in receipt for payable methods', async () => { + it.only('Returns revert reason in receipt for payable methods', async () => { const transaction = { value: ONE_TINYBAR, gasLimit: numberTo0x(30000), @@ -728,7 +728,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ]; for (const element of pureMethodsData) { - it(`Pure method ${element.method} returns tx receipt`, async function () { + it.only(`Pure method ${element.method} returns tx receipt`, async function () { const callData = { from: accounts[0].address, to: reverterEvmAddress, @@ -776,7 +776,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { htsImpl = await HederaTokenServiceImplFactory.deploy(Helper.GAS.LIMIT_15_000_000); }); - it('Function calling HederaTokenService.isToken(token)', async () => { + it.only('Function calling HederaTokenService.isToken(token)', async () => { const callData = { from: accounts[1].address, to: htsImpl.target, @@ -813,7 +813,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ); }); - it('should NOT allow eth_call to process IHRC719.isAssociated() method', async () => { + it.only('should NOT allow eth_call to process IHRC719.isAssociated() method', async () => { const selectorsList = ConfigService.get('ETH_CALL_CONSENSUS_SELECTORS'); expect(selectorsList).to.be.undefined; @@ -824,7 +824,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ); }); - it('should allow eth_call to successfully process IHRC719.isAssociated() method', async () => { + it.only('should allow eth_call to successfully process IHRC719.isAssociated() method', async () => { const isAssociatedSelector = (await hrc719Contract.isAssociated.populateTransaction(tokenAddress)).data.slice( 2, 10, @@ -890,7 +890,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ); }); - it('@release should execute "eth_getTransactionCount" primary', async function () { + it.only('@release should execute "eth_getTransactionCount" primary', async function () { const res = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, [mirrorPrimaryAccount.address, deployerContractTx.blockNumber], @@ -899,7 +899,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.be.equal(primaryAccountNonce); }); - it('should execute "eth_getTransactionCount" secondary', async function () { + it.only('should execute "eth_getTransactionCount" secondary', async function () { const res = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, [mirrorSecondaryAccount.address, deployerContractTx.blockNumber], @@ -908,7 +908,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.be.equal(secondaryAccountNonce); }); - it('@release should execute "eth_getTransactionCount" historic', async function () { + it.only('@release should execute "eth_getTransactionCount" historic', async function () { const res = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, [deployerContractAddress, deployerContractTx.blockNumber], @@ -917,7 +917,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.be.equal('0x2'); }); - it('@release should execute "eth_getTransactionCount" contract latest', async function () { + it.only('@release should execute "eth_getTransactionCount" contract latest', async function () { const res = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, [deployerContractAddress, EthImpl.blockLatest], @@ -926,7 +926,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.be.equal('0x2'); }); - it('@release should execute "eth_getTransactionCount" with block hash', async function () { + it.only('@release should execute "eth_getTransactionCount" with block hash', async function () { const res = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, [deployerContractAddress, deployerContractTx.blockHash.slice(0, 66)], @@ -935,7 +935,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.be.equal('0x2'); }); - it('@release should execute "eth_getTransactionCount" for account with id converted to evm_address', async function () { + it.only('@release should execute "eth_getTransactionCount" for account with id converted to evm_address', async function () { const res = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, [mirrorPrimaryAccount.address, deployerContractTx.blockNumber], @@ -944,7 +944,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.be.equal(primaryAccountNonce); }); - it('@release should execute "eth_getTransactionCount" contract with id converted to evm_address historic', async function () { + it.only('@release should execute "eth_getTransactionCount" contract with id converted to evm_address historic', async function () { const res = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, [Utils.idToEvmAddress(contractId.toString()), deployerContractTx.blockNumber], @@ -953,7 +953,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.be.equal('0x2'); }); - it('@release should execute "eth_getTransactionCount" contract with id converted to evm_address latest', async function () { + it.only('@release should execute "eth_getTransactionCount" contract with id converted to evm_address latest', async function () { const res = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, [Utils.idToEvmAddress(contractId.toString()), EthImpl.blockLatest], @@ -962,7 +962,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.be.equal('0x2'); }); - it('should execute "eth_getTransactionCount" for non-existing address', async function () { + it.only('should execute "eth_getTransactionCount" for non-existing address', async function () { const res = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, [Address.NON_EXISTING_ADDRESS, deployerContractTx.blockNumber], @@ -971,7 +971,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.be.equal('0x0'); }); - it('should execute "eth_getTransactionCount" from hollow account', async function () { + it.only('should execute "eth_getTransactionCount" from hollow account', async function () { const hollowAccount = ethers.Wallet.createRandom(); const resBeforeCreation = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, @@ -1018,7 +1018,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(resAfterCreation).to.be.equal('0x1'); }); - it('should execute "eth_getTransactionCount" for account with non-zero nonce', async function () { + it.only('should execute "eth_getTransactionCount" for account with non-zero nonce', async function () { const account = await Utils.createAliasAccount(mirrorNode, accounts[0], requestId); const gasPrice = await relay.gasPrice(requestId); @@ -1044,7 +1044,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(res).to.be.equal('0x1'); }); - it('nonce for contract correctly increments', async function () { + it.only('nonce for contract correctly increments', async function () { const nonceBefore = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, [deployerContract.target, 'latest'], @@ -1053,7 +1053,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(nonceBefore).to.be.equal('0x2'); const newContractReceipt = await deployerContract.deployViaCreate(); - await newContractReceipt.wait(); + await newContractReceipt.wait.only(); const nonceAfter = await relay.call( RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_COUNT, @@ -1068,7 +1068,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { const nonExstingFilter = '0x111222331'; describe('Positive', async function () { - it('@release should be able to create a log filter', async function () { + it.only('@release should be able to create a log filter', async function () { const currentBlock = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_BLOCK_NUMBER, [], requestId); expect( RelayAssertions.validateHash(await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_NEW_FILTER, [], requestId), 32), @@ -1125,7 +1125,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ).to.eq(true, 'with all params'); }); - it('@release should be able to create a newBlock filter', async function () { + it.only('@release should be able to create a newBlock filter', async function () { expect( RelayAssertions.validateHash( await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_NEW_BLOCK_FILTER, [], requestId), @@ -1134,19 +1134,19 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ).to.eq(true); }); - it('should be able to uninstall existing log filter', async function () { + it.only('should be able to uninstall existing log filter', async function () { const filterId = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_NEW_FILTER, [], requestId); const result = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_UNINSTALL_FILTER, [filterId], requestId); expect(result).to.eq(true); }); - it('should be able to uninstall existing newBlock filter', async function () { + it.only('should be able to uninstall existing newBlock filter', async function () { const filterId = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_NEW_BLOCK_FILTER, [], requestId); const result = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_UNINSTALL_FILTER, [filterId], requestId); expect(result).to.eq(true); }); - it('@release should be able to call eth_getFilterChanges for NEW_BLOCK filter', async function () { + it.only('@release should be able to call eth_getFilterChanges for NEW_BLOCK filter', async function () { const filterId = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_NEW_BLOCK_FILTER, [], requestId); await new Promise((r) => setTimeout(r, 4000)); @@ -1167,12 +1167,12 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { }); describe('Negative', async function () { - it('should not be able to uninstall not existing filter', async function () { + it.only('should not be able to uninstall not existing filter', async function () { const result = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_UNINSTALL_FILTER, [nonExstingFilter], requestId); expect(result).to.eq(false); }); - it('should not be able to call eth_getFilterChanges for not existing filter', async function () { + it.only('should not be able to call eth_getFilterChanges for not existing filter', async function () { await relay.callFailing( RelayCall.ETH_ENDPOINTS.ETH_GET_FILTER_CHANGES, [nonExstingFilter], @@ -1181,7 +1181,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ); }); - it('should not support "eth_newPendingTransactionFilter"', async function () { + it.only('should not support "eth_newPendingTransactionFilter"', async function () { await relay.callUnsupported(RelayCalls.ETH_ENDPOINTS.ETH_NEW_PENDING_TRANSACTION_FILTER, [], requestId); }); }); @@ -1319,7 +1319,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { describe('Test transactions of type 0', async function () { //onlyTopCall:false - it('should be able to debug a successful CREATE transaction of type Legacy with call depth and onlyTopCall false', async function () { + it.only('should be able to debug a successful CREATE transaction of type Legacy with call depth and onlyTopCall false', async function () { const transaction = { ...transactionTypeLegacy, chainId: Number(CHAIN_ID), @@ -1347,7 +1347,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(resultDebug.calls).to.have.lengthOf(1); }); - it('should be able to debug a successful CALL transaction of type Legacy with call depth and onlyTopCall true', async function () { + it.only('should be able to debug a successful CALL transaction of type Legacy with call depth and onlyTopCall true', async function () { const transaction = { ...transactionTypeLegacy, from: accounts[0].address, @@ -1378,7 +1378,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(resultDebug.calls).to.have.lengthOf(1); }); - it('should be able to debug a failing CREATE transaction of type Legacy with call depth and onlyTopCall false', async function () { + it.only('should be able to debug a failing CREATE transaction of type Legacy with call depth and onlyTopCall false', async function () { const transaction = { ...transactionTypeLegacy, nonce: await relay.getAccountNonce(accounts[0].address, requestId), @@ -1403,7 +1403,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output'], [], failingResultCreate); }); - it('should be able to debug a failing CALL transaction with revert reason of type Legacy with call depth and onlyTopCall false', async function () { + it.only('should be able to debug a failing CALL transaction with revert reason of type Legacy with call depth and onlyTopCall false', async function () { const transaction = { ...transactionTypeLegacy, from: accounts[0].address, @@ -1429,7 +1429,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { }); //onlyTopCall:true - it('should be able to debug a successful CREATE transaction of type Legacy with call depth and onlyTopCall true', async function () { + it.only('should be able to debug a successful CREATE transaction of type Legacy with call depth and onlyTopCall true', async function () { const transaction = { ...transactionTypeLegacy, chainId: Number(CHAIN_ID), @@ -1452,7 +1452,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output', 'calls'], [], defaultResponseFields); }); - it('should be able to debug a successful CALL transaction of type Legacy with call depth and onlyTopCall false', async function () { + it.only('should be able to debug a successful CALL transaction of type Legacy with call depth and onlyTopCall false', async function () { const transaction = { ...transactionTypeLegacy, from: accounts[0].address, @@ -1477,7 +1477,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output'], [], successResultCall); }); - it('should be able to debug a failing CREATE transaction of type Legacy with call depth and onlyTopCall true', async function () { + it.only('should be able to debug a failing CREATE transaction of type Legacy with call depth and onlyTopCall true', async function () { const transaction = { ...transactionTypeLegacy, nonce: await relay.getAccountNonce(accounts[0].address, requestId), @@ -1502,7 +1502,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output'], [], failingResultCreate); }); - it('should be able to debug a failing CALL transaction of type Legacy with call depth and onlyTopCall true', async function () { + it.only('should be able to debug a failing CALL transaction of type Legacy with call depth and onlyTopCall true', async function () { const transaction = { ...transactionTypeLegacy, from: accounts[0].address, @@ -1530,7 +1530,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { describe('Test transaction of type 1', async function () { //onlyTopCall:false - it('should be able to debug a successful CREATE transaction of type 2930 with call depth and onlyTopCall false', async function () { + it.only('should be able to debug a successful CREATE transaction of type 2930 with call depth and onlyTopCall false', async function () { const transaction = { ...transactionType2930, chainId: Number(CHAIN_ID), @@ -1560,7 +1560,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { }); //onlyTopCall:false - it('should be able to debug a successful CALL transaction of type 2930 with call depth and onlyTopCall false', async function () { + it.only('should be able to debug a successful CALL transaction of type 2930 with call depth and onlyTopCall false', async function () { const transaction = { ...transactionType2930, from: accounts[0].address, @@ -1586,7 +1586,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output', 'calls'], [], defaultResponseFields); }); - it('should be able to debug a failing CREATE transaction of type 2930 with call depth and onlyTopCall false', async function () { + it.only('should be able to debug a failing CREATE transaction of type 2930 with call depth and onlyTopCall false', async function () { const transaction = { ...transactionType2930, nonce: await relay.getAccountNonce(accounts[2].address, requestId), @@ -1611,7 +1611,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output'], [], failingResultCreate); }); - it('should be able to debug a failing CALL transaction of type 2930 with call depth and onlyTopCall false', async function () { + it.only('should be able to debug a failing CALL transaction of type 2930 with call depth and onlyTopCall false', async function () { const transaction = { ...transactionType2930, from: accounts[0].address, @@ -1637,7 +1637,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { }); //onlyTopCall:true - it('should be able to debug a successful CREATE transaction of type 2930 with call depth and onlyTopCall true', async function () { + it.only('should be able to debug a successful CREATE transaction of type 2930 with call depth and onlyTopCall true', async function () { const transaction = { ...transactionType2930, chainId: Number(CHAIN_ID), @@ -1667,7 +1667,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ); }); - it('should be able to debug a successful CALL transaction of type 2930 with call depth and onlyTopCall true', async function () { + it.only('should be able to debug a successful CALL transaction of type 2930 with call depth and onlyTopCall true', async function () { const transaction = { ...transactionType2930, from: accounts[0].address, @@ -1692,7 +1692,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output'], [], successResultCall); }); - it('should be able to debug a failing CREATE transaction of type 2930 with call depth and onlyTopCall true', async function () { + it.only('should be able to debug a failing CREATE transaction of type 2930 with call depth and onlyTopCall true', async function () { const transaction = { ...transactionType2930, nonce: await relay.getAccountNonce(accounts[0].address, requestId), @@ -1717,7 +1717,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output'], [], failingResultCreate); }); - it('should be able to debug a failing CALL transaction of type 2930 with call depth and onlyTopCall true', async function () { + it.only('should be able to debug a failing CALL transaction of type 2930 with call depth and onlyTopCall true', async function () { const transaction = { ...transactionType2930, from: accounts[1].address, @@ -1745,7 +1745,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { describe('Test transactions of type: 2', async function () { //onlyTopCall:false - it('should be able to debug a successful CREATE transaction of type 1559 with call depth and onlyTopCall false', async function () { + it.only('should be able to debug a successful CREATE transaction of type 1559 with call depth and onlyTopCall false', async function () { const transaction = { ...transactionType2, chainId: Number(CHAIN_ID), @@ -1774,7 +1774,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { expect(resultDebug.calls).to.have.lengthOf(1); }); - it('should be able to debug a successful CALL transaction of type 1559 with call depth and onlyTopCall false', async function () { + it.only('should be able to debug a successful CALL transaction of type 1559 with call depth and onlyTopCall false', async function () { const transaction = { ...transactionType2, to: estimateGasContractAddress.address, @@ -1803,7 +1803,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ); }); - it('@release should be able to debug a failing CREATE transaction of type 1559 with call depth and onlyTopCall false', async function () { + it.only('@release should be able to debug a failing CREATE transaction of type 1559 with call depth and onlyTopCall false', async function () { const transaction = { ...transactionType2, nonce: await relay.getAccountNonce(accounts[2].address, requestId), @@ -1828,7 +1828,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output'], [], failingResultCreate); }); - it('@release should be able to debug a failing CALL transaction of type 1559 with call depth and onlyTopCall false', async function () { + it.only('@release should be able to debug a failing CALL transaction of type 1559 with call depth and onlyTopCall false', async function () { const transaction = { ...transactionType2, to: reverterContractAddress, @@ -1853,7 +1853,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { }); //onlyTopCall:true - it('@release should be able to debug a successful CREATE transaction of type 1559 with call depth and onlyTopCall true', async function () { + it.only('@release should be able to debug a successful CREATE transaction of type 1559 with call depth and onlyTopCall true', async function () { const transaction = { ...transactionType2, chainId: CHAIN_ID, @@ -1883,7 +1883,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { ); }); - it('@release should be able to debug a successful CALL transaction of type 1559 with call depth and onlyTopCall true', async function () { + it.only('@release should be able to debug a successful CALL transaction of type 1559 with call depth and onlyTopCall true', async function () { const transaction = { ...transactionType2, to: estimateGasContractAddress.address, @@ -1907,7 +1907,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output'], [], successResultCall); }); - it('should be able to debug a failing CREATE transaction of type 1559 with call depth and onlyTopCall true', async function () { + it.only('should be able to debug a failing CREATE transaction of type 1559 with call depth and onlyTopCall true', async function () { const transaction = { ...transactionType2, nonce: await relay.getAccountNonce(accounts[0].address, requestId), @@ -1931,7 +1931,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { Assertions.validateResultDebugValues(resultDebug, ['to', 'output'], [], failingResultCreate); }); - it('should be able to debug a failing CALL transaction of type 1559 with call depth and onlyTopCall true', async function () { + it.only('should be able to debug a failing CALL transaction of type 1559 with call depth and onlyTopCall true', async function () { const transaction = { ...transactionType2, from: accounts[1].address, @@ -1959,7 +1959,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { }); describe('Negative scenarios', async function () { - it('should return 400 error for non-existing transaction hash', async function () { + it.only('should return 400 error for non-existing transaction hash', async function () { const nonExistentTransactionHash = '0xb8a433b014684558d4154c73de3ed360bd5867725239938c2143acb7a76bca82'; const expectedError = predefined.RESOURCE_NOT_FOUND( `Failed to retrieve contract results for transaction ${nonExistentTransactionHash}`, @@ -1973,7 +1973,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { await Assertions.assertPredefinedRpcError(expectedError, relay.call, false, relay, args); }); - it('should fail to debug a transaction with invalid onlyTopCall value type', async function () { + it.only('should fail to debug a transaction with invalid onlyTopCall value type', async function () { const transaction = { ...transactionTypeLegacy, chainId: Number(CHAIN_ID), @@ -1998,7 +1998,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { await Assertions.assertPredefinedRpcError(expectedError, relay.call, false, relay, args); }); - it('should fail to debug a transaction with invalid tracer type', async function () { + it.only('should fail to debug a transaction with invalid tracer type', async function () { const transaction = { ...transactionTypeLegacy, chainId: Number(CHAIN_ID), @@ -2028,7 +2028,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { describe('Batch Request Test Suite BATCH_REQUESTS_ENABLED = true', async function () { overrideEnvsInMochaDescribe({ BATCH_REQUESTS_ENABLED: true }); - it('Should return a batch of requests', async function () { + it.only('Should return a batch of requests', async function () { const testAccount = await Utils.createAliasAccount(mirrorNode, accounts[0], requestId); { @@ -2136,7 +2136,7 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () { }; }); - it('Type 3 transactions are not supported for eth_sendRawTransaction', async () => { + it.only('Type 3 transactions are not supported for eth_sendRawTransaction', async () => { const transaction = { ...defaultLondonTransactionData, type: 3, diff --git a/packages/ws-server/tests/acceptance/subscribe.spec.ts b/packages/ws-server/tests/acceptance/subscribe.spec.ts index 479705e632..81a78e5b27 100644 --- a/packages/ws-server/tests/acceptance/subscribe.spec.ts +++ b/packages/ws-server/tests/acceptance/subscribe.spec.ts @@ -771,7 +771,7 @@ describe('@web-socket-batch-3 eth_subscribe', async function () { await wsHtsProvider.websocket.close(); }); - it('@release captures transfer events', async function () { + it.only('@release captures transfer events', async function () { const balanceBefore = await htsToken.balanceOf(htsAccounts[1].wallet.address); expect(balanceBefore.toString()).to.eq('0', 'verify initial balance');