fix test runner does not keepalive

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2026-05-14 11:14:15 +02:00
parent b8c89c43df
commit 404ecd205b
2 changed files with 12 additions and 0 deletions
+4
View File
@@ -370,6 +370,10 @@ func (m *RemoteBrowserController) RunByID(g *gin.Context) {
}
}()
// NoKeepAlive=true so keepAlive() in test scripts returns immediately instead
// of parking the browser — closing the test panel must always stop cleanly.
runner.NoKeepAlive = true
// Run the script in a goroutine; Events channel is closed when done.
go runner.Run(ctx) //nolint:errcheck