You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is the template to demonstrate how to test Rod.funcTestLab(t*testing.T) {
g:=setup(t)
g.cancelTimeout() // Cancel timeout protectionbrowser, page:=g.browser, g.page// You can use the pre-launched g.browser for testingg.Eq(browser.MustVersion().ProtocolVersion, "1.3")
// You can also use the pre-created g.page for testingpage.MustNavigate(g.blank()).MustWaitLoad()
g.Has(page.MustInfo().URL, "blank.html")
}
What you got
C:\Users\pawel\go\src\github.com\PawelKowalski99
λ cd rod\
C:\Users\pawel\go\src\github.com\PawelKowalski99\rod(master -> origin)
λ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
C:\Users\pawel\go\src\github.com\PawelKowalski99\rod(master -> origin)
λ go test -run TestLab
parallel test 12
--- FAIL: TestLab (0.44s)
panic: fork/exec C:\Users\pawel\AppData\Local\Temp\leakless-0c3354cd58f0813bb5b34ddf3a7c16ed\leakless.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software. [recovered]
panic: fork/exec C:\Users\pawel\AppData\Local\Temp\leakless-0c3354cd58f0813bb5b34ddf3a7c16ed\leakless.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software.
goroutine 19 [running]:
testing.tRunner.func1.2({0xd75420, 0xc0001de000})
C:/Program Files/Go/src/testing/testing.go:1396 +0x24e
testing.tRunner.func1()
C:/Program Files/Go/src/testing/testing.go:1399 +0x39f
panic({0xd75420, 0xc0001de000})
C:/Program Files/Go/src/runtime/panic.go:884 +0x212
github.com/go-rod/rod/lib/utils.glob..func2({0xd75420?, 0xc0001de000?})
C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/lib/utils/utils.go:60 +0x25
github.com/go-rod/rod/lib/utils.E(...)
C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/lib/utils/utils.go:66
github.com/go-rod/rod/lib/launcher.(*Launcher).MustLaunch(0xc00003a0c0?)
C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/lib/launcher/launcher.go:351 +0x67
github.com/go-rod/rod_test.TesterPool.new({0xc000084680?, 0x729?})
C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/setup_test.go:108 +0x25
github.com/go-rod/rod_test.TesterPool.get({0xc00008e060?, 0xc0000a0288?}, 0xc000084680)
C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/setup_test.go:138 +0xbe
github.com/go-rod/rod_test.glob..func1(0x13891e0?)
C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/setup_test.go:59 +0x6c
github.com/go-rod/rod_test.TestLab(0x1?)
C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/lab_test.go:9 +0x35
testing.tRunner(0xc000084680, 0xf82518)
C:/Program Files/Go/src/testing/testing.go:1446 +0x10b
created by testing.(*T).Run
C:/Program Files/Go/src/testing/testing.go:1493 +0x35f
exit status 2
FAIL github.com/go-rod/rod 1.266s
What you expected to see
I wanted to see clear tests passing.
What have you tried to solve the question
Nothing yet. I wanted to share the problem asap.
Working system: Windows 10
The text was updated successfully, but these errors were encountered:
You can disable leakless, the browser process auto-kill won't work anymore, but you can add a defer on your main function to close the browser manually:
Rod Version: v0.111.0
The code to demonstrate your question
What you got
What you expected to see
I wanted to see clear tests passing.
What have you tried to solve the question
Nothing yet. I wanted to share the problem asap.
Working system: Windows 10
The text was updated successfully, but these errors were encountered: