Skip to content

Commit c5c0f3d

Browse files
authored
Try to reduce serial console test flake (#2843)
try to reduce serial console test flake
1 parent 83a4761 commit c5c0f3d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

mock-api/msw/handlers.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -585,13 +585,15 @@ export const handlers = makeHandlers({
585585
auto_restart_enabled: true,
586586
}
587587

588-
setTimeout(() => {
589-
newInstance.run_state = 'starting'
590-
}, 1000)
588+
if (body.start) {
589+
setTimeout(() => {
590+
newInstance.run_state = 'starting'
591+
}, 1500)
591592

592-
setTimeout(() => {
593-
newInstance.run_state = 'running'
594-
}, 4000)
593+
setTimeout(() => {
594+
newInstance.run_state = 'running'
595+
}, 4000)
596+
}
595597

596598
db.instances.push(newInstance)
597599

0 commit comments

Comments
 (0)