mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-28 05:10:28 +02:00
fix test runner does not keepalive
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user