Skip to content

Commit 319c368

Browse files
authored
Add unit test for the validator (#63)
* Add unit tests for validator * Add unit test for validator
1 parent d2a4655 commit 319c368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/methods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func GetEnv(name string) (string, error) {
3838
func InitChromeDp() (chromedpCtx context.Context, cancelFnc context.CancelFunc) {
3939
log.Printf("Initializing chromedp...")
4040
if Headless {
41-
chromedpCtx, cancelFnc = chromedp.NewContext(context.Background())
41+
chromedpCtx, cancelFnc = chromedp.NewContext(context.Background(), chromedp.WithDebugf(log.Printf))
4242
} else {
4343
allocCtx, _ := chromedp.NewExecAllocator(context.Background())
4444
chromedpCtx, cancelFnc = chromedp.NewContext(allocCtx)

0 commit comments

Comments
 (0)