From 2321e6c64b574b8794cbcbdfed8cd75702fe155e Mon Sep 17 00:00:00 2001 From: Leon Jacobs Date: Sun, 13 Oct 2024 09:09:03 +0200 Subject: [PATCH] (fix) give chrome a second to cleanup --- pkg/runner/drivers/go-rod.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/runner/drivers/go-rod.go b/pkg/runner/drivers/go-rod.go index 728ce6a4..d0ad11e8 100644 --- a/pkg/runner/drivers/go-rod.go +++ b/pkg/runner/drivers/go-rod.go @@ -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)