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)