From 31c218debff293ce9a7a817dd12b1b25efbc0b22 Mon Sep 17 00:00:00 2001 From: Jeremy Wei Date: Thu, 13 Nov 2025 10:12:29 -0500 Subject: [PATCH] remove watermark integration test --- contracts/test/EVMCompatabilityTest.js | 71 -------------------------- 1 file changed, 71 deletions(-) diff --git a/contracts/test/EVMCompatabilityTest.js b/contracts/test/EVMCompatabilityTest.js index c923783957..03ced0f634 100644 --- a/contracts/test/EVMCompatabilityTest.js +++ b/contracts/test/EVMCompatabilityTest.js @@ -886,77 +886,6 @@ describe("EVM Test", function () { } }); - it.only("Should keep head receipts and traces immediately available under load", async function () { - // this.timeout(60000); - const txOpts = { gasPrice: ethers.parseUnits('100', 'gwei') }; - const txResponse = await evmTester.setBoolVar(true, txOpts); - const txHash = txResponse.hash; - const normalizedTxHash = txHash.toLowerCase(); - const startBlock = await ethers.provider.getBlockNumber(); - const blocksToInspect = [startBlock, startBlock + 1]; - - const waitForBlockNumber = async (targetNumber) => { - const attempts = 40; - for (let i = 0; i < attempts; i++) { - const latest = await ethers.provider.getBlockNumber(); - if (latest >= targetNumber) { - return true; - } - await sleep(500); - } - return false; - }; - - const fetchBlockWithWait = async (blockNumber, waitForBlock) => { - const attempts = waitForBlock ? 20 : 1; - for (let i = 0; i < attempts; i++) { - const block = await ethers.provider.getBlock(blockNumber, true); - if (block) { - return block; - } - await sleep(500); - } - return null; - }; - - let locatedBlock = null; - for (let i = 0; i < blocksToInspect.length; i++) { - const blockNumber = blocksToInspect[i]; - if (i === 1) { - const seen = await waitForBlockNumber(blockNumber); - if (!seen) { - continue; - } - } - const block = await fetchBlockWithWait(blockNumber, i === 1); - if (!block || !block.transactions || block.transactions.length === 0) { - continue; - } - const hashes = block.transactions.map((tx) => - typeof tx === "string" ? tx.toLowerCase() : tx.hash.toLowerCase() - ); - if (hashes.includes(normalizedTxHash)) { - locatedBlock = block; - break; - } - } - - if (!locatedBlock) { - throw new Error("Transaction not found in the latest two blocks"); - } - - const receipt = await ethers.provider.getTransactionReceipt(txHash); - expect(receipt).to.not.be.null; - expect(receipt.blockNumber).to.equal(locatedBlock.number); - - const trace = await hre.network.provider.request({ - method: "debug_traceTransaction", - params: [txHash], - }); - expect(trace).to.have.property("structLogs"); - expect(trace.failed).to.be.false; - }); - it("Should fetch the current gas price", async function () { const feeData = await ethers.provider.getFeeData() expect(isBigNumber(feeData.gasPrice)).to.be.true;