Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

test: relax CLI validation timeout

Tw933ab4473eb101
diff --git a/tests/index.js b/tests/index.js
index 6cf3dde0..63c5be29 100644
--- a/tests/index.js
+++ b/tests/index.js
@@ -136,11 +136,15 @@ class PakeTestRunner {
try {
execSync(`node "${config.CLI_PATH}" --version`, {
encoding: "utf8",
- timeout: 3000,
+ timeout: TIMEOUTS.QUICK,
});
- console.log("[PASS] CLI is executable");
+ console.log("[PASS] CLI responds");
} catch (error) {
- console.log("[FAIL] CLI is not executable");
+ const reason =
+ error.signal === "SIGTERM"
+ ? `timed out after ${TIMEOUTS.QUICK}ms`
+ : error.message;
+ console.log(`[FAIL] CLI did not respond: ${reason}`);
process.exit(1);
}