mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-13 10:41:05 +00:00
Disable large contract test for Bun and Firefox
This commit is contained in:
@@ -57,7 +57,12 @@ test("should successfully compile valid Solidity code in browser", async ({
|
|||||||
|
|
||||||
test("should successfully compile large valid Solidity code in browser", async ({
|
test("should successfully compile large valid Solidity code in browser", async ({
|
||||||
page,
|
page,
|
||||||
|
browserName,
|
||||||
}) => {
|
}) => {
|
||||||
|
if (browserName === "firefox") {
|
||||||
|
// Skipping tests with large contracts on Firefox due to out-of-memory issues.
|
||||||
|
test.skip();
|
||||||
|
}
|
||||||
await loadTestPage(page);
|
await loadTestPage(page);
|
||||||
const standardInput = loadFixture("token.json");
|
const standardInput = loadFixture("token.json");
|
||||||
const result = await runWorker(page, standardInput);
|
const result = await runWorker(page, standardInput);
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ describe("Compile Function Tests", function () {
|
|||||||
).to.have.property("bytecode");
|
).to.have.property("bytecode");
|
||||||
});
|
});
|
||||||
|
|
||||||
if (typeof globalThis.Bun == "undefined" || true) {
|
if (typeof globalThis.Bun == "undefined") {
|
||||||
// Running this test with Bun on a Linux host causes:
|
// Running this test with Bun on a Linux host causes:
|
||||||
// RuntimeError: Out of bounds memory access (evaluating 'getWasmTableEntry(index)(a1, a2, a3, a4, a5)')
|
// RuntimeError: Out of bounds memory access (evaluating 'getWasmTableEntry(index)(a1, a2, a3, a4, a5)')
|
||||||
// Once this issue is resolved, the test will be re-enabled.
|
// Once this issue is resolved, the test will be re-enabled.
|
||||||
|
|||||||
Reference in New Issue
Block a user