Skip to content

Commit 064f156

Browse files
committed
fix: kill wda if StartAgent times out on simulator
1 parent d17dc05 commit 064f156

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

devices/simulator.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,8 @@ func (s *SimulatorDevice) StartAgent(config StartAgentConfig) error {
605605

606606
err = s.wdaClient.WaitForAgent()
607607
if err != nil {
608+
// terminate the WDA process if it failed to start
609+
_ = s.TerminateApp(webdriverPackageName)
608610
return err
609611
}
610612

0 commit comments

Comments
 (0)