From 9761fbd7b47f63dbf884a867d4f6ea0473465aa4 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Mon, 30 Jun 2025 13:51:01 -0500 Subject: [PATCH] try to reduce serial console test flake --- mock-api/msw/handlers.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mock-api/msw/handlers.ts b/mock-api/msw/handlers.ts index 32ffce368..c868aa41e 100644 --- a/mock-api/msw/handlers.ts +++ b/mock-api/msw/handlers.ts @@ -585,13 +585,15 @@ export const handlers = makeHandlers({ auto_restart_enabled: true, } - setTimeout(() => { - newInstance.run_state = 'starting' - }, 1000) + if (body.start) { + setTimeout(() => { + newInstance.run_state = 'starting' + }, 1500) - setTimeout(() => { - newInstance.run_state = 'running' - }, 4000) + setTimeout(() => { + newInstance.run_state = 'running' + }, 4000) + } db.instances.push(newInstance)