diff --git a/crates/solidity/outputs/npm/tests/src/compilation/timing.test.mts b/crates/solidity/outputs/npm/tests/src/compilation/timing.test.mts index 27dc75fa44..d679278e3a 100644 --- a/crates/solidity/outputs/npm/tests/src/compilation/timing.test.mts +++ b/crates/solidity/outputs/npm/tests/src/compilation/timing.test.mts @@ -76,10 +76,11 @@ async function testFile(file: string) { // console.log(`UNDEF: ${cursor.node}`); neitherDefNorRef += 1; } - else { + + if (defs + refs + emptyRef + neitherDefNorRef > 1) { + // don't push the first one, as that one might trigger the build of the graph gotoDefTimes.push(gotoDefTime); } - } const measure = round(performance.now() - start);