Skip to content

Commit 6ad4ab7

Browse files
committed
alter tests
1 parent 34b27f1 commit 6ad4ab7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

chromedp/chromedp_test.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
package chromedptool
22

33
import (
4+
"log"
45
"os"
56
"testing"
67
)
78

89
func TestPrintf(t *testing.T) {
910
path := "./baidu.pdf"
1011
defer os.RemoveAll(path)
12+
h := ChromedpHandler{}
1113

12-
err := ChromedpHandler{}.GenPdf("https://baidu.com", path)
14+
url, err := h.GetConnUrl()
15+
if err != nil {
16+
log.Println(err)
17+
return
18+
}
19+
log.Println(url)
20+
21+
err = h.GenPdf("https://baidu.com", path)
1322
if err != nil {
1423
t.Error(err)
1524
}

0 commit comments

Comments
 (0)