fix test/code validation issues

This commit is contained in:
Lukas Rist
2022-12-23 15:51:54 +01:00
parent 738852f932
commit 85d73be641
3 changed files with 17 additions and 13 deletions

View File

@@ -5,14 +5,15 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/chromedp/cdproto/dom"
"github.com/chromedp/chromedp"
"net/http"
"net/http/httptest"
"net/url"
"strings"
"testing"
"github.com/chromedp/cdproto/dom"
"github.com/chromedp/chromedp"
"github.com/PuerkitoBio/goquery"
"github.com/elazarl/goproxy"
"github.com/fortytw2/leaktest"
@@ -162,6 +163,7 @@ func TestGetRenderedCustomActions(t *testing.T) {
g.Do(req, g.Opt.ParseFunc)
},
ParseFunc: func(g *geziyor.Geziyor, r *client.Response) {
assert.Equal(t, 200, r.StatusCode)
fmt.Println(string(r.Body))
fmt.Println(r.Request.URL.String(), r.Header)
},