Skip to content

Commit

Permalink
(fix) give chrome a second to cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Oct 13, 2024
1 parent 7ccc4c9 commit 2321e6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/runner/drivers/go-rod.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,9 @@ func (run *Gorod) Close() {

// cleaning user data
if run.userData != "" {
// wait a sec for the browser process to go away
time.Sleep(time.Second * 1)

run.log.Debug("cleaning user data directory", "directory", run.userData)
if err := os.RemoveAll(run.userData); err != nil {
run.log.Error("could not cleanup temporary user data dir", "dir", run.userData, "err", err)
Expand Down

0 comments on commit 2321e6c

Please # to comment.