Skip to content

Commit 0f270c9

Browse files
committed
fix: cli exits immediately when no scenario specified
1 parent 3de3761 commit 0f270c9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,12 @@ async function main() {
239239
await client.simResume(timeToNextEvent);
240240
}
241241

242-
await scenarioPromise;
242+
if (scenarioPromise) {
243+
await scenarioPromise;
244+
} else {
245+
// wait forever - until there's an error, timeout, serial output match, or the user presses Ctrl+C
246+
await new Promise(() => {});
247+
}
243248
} finally {
244249
client.close();
245250
}

0 commit comments

Comments
 (0)