Skip to content

Commit 6d148fa

Browse files
committed
test: avoid mustCall mismatch in SEA zip test
Run the synchronous SEA build and execution inside the promise callback. The callback is then counted before buildSEA can skip the test when signing tools are unavailable. Signed-off-by: Matteo Collina <hello@matteocollina.com> Assisted-by: Pi
1 parent 3bcd0ef commit 6d148fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/sea/test-single-executable-application-vfs-zip.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ async function main() {
3535
]),
3636
createWriteStream(tmpdir.resolve('assets.zip')),
3737
);
38+
}
3839

40+
main().then(common.mustCall(() => {
3941
const outputFile = buildSEA(fixtures.path('sea', 'vfs-zip'));
4042

4143
spawnSyncAndAssert(
@@ -55,6 +57,4 @@ async function main() {
5557
},
5658
},
5759
);
58-
}
59-
60-
main().then(common.mustCall());
60+
}));

0 commit comments

Comments
 (0)