From 42565c8bdc869566af57a9f7b8319597dcdafbca Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Mon, 27 May 2024 10:07:23 +0200 Subject: [PATCH] chore: coerce ui-test to end --- src/spec/demoVideo.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/spec/demoVideo.ts b/src/spec/demoVideo.ts index 1c47041..e907a18 100644 --- a/src/spec/demoVideo.ts +++ b/src/spec/demoVideo.ts @@ -36,6 +36,14 @@ process.on('unhandledRejection', (error: Error | any) => { process.exit(1) }) +setTimeout( + () => { + console.error('Timeout reached') + process.exit(1) + }, + 60 * 10 * 1000 +) + const runningUiTestOnCi = os.platform() === 'darwin' ? [] : ['--runningUiTestOnCi'] async function doStuff() { @@ -143,6 +151,10 @@ async function doStuff() { await sleep(3000) }) + setTimeout(() => { + console.log('Forced quit') + process.exit(0) + }, 10 * 1000) stopMqtt() console.log('Stopped mqtt client')