chore: coerce ui-test to end

This commit is contained in:
Thomas Nordquist
2024-05-27 10:07:23 +02:00
parent 8b43e20f2e
commit 42565c8bdc

View File

@@ -36,6 +36,14 @@ process.on('unhandledRejection', (error: Error | any) => {
process.exit(1) process.exit(1)
}) })
setTimeout(
() => {
console.error('Timeout reached')
process.exit(1)
},
60 * 10 * 1000
)
const runningUiTestOnCi = os.platform() === 'darwin' ? [] : ['--runningUiTestOnCi'] const runningUiTestOnCi = os.platform() === 'darwin' ? [] : ['--runningUiTestOnCi']
async function doStuff() { async function doStuff() {
@@ -143,6 +151,10 @@ async function doStuff() {
await sleep(3000) await sleep(3000)
}) })
setTimeout(() => {
console.log('Forced quit')
process.exit(0)
}, 10 * 1000)
stopMqtt() stopMqtt()
console.log('Stopped mqtt client') console.log('Stopped mqtt client')