1 回答

TA貢獻(xiàn)1827條經(jīng)驗 獲得超8個贊
因此,長話短說,我通過 chromedp 本地安裝的庫運(yùn)行測試go test
,但失敗了。我在 Github repo 上打開了一個問題。雖然沒有表明它需要 Go 1.14+,但它確實需要。
如果您遇到此問題,請先在 master 分支本地安裝的庫上運(yùn)行測試。如果失敗并顯示以下日志:
github.com/chromedp/chromedp [github.com/chromedp/chromedp.test] ./chromedp_test.go:862:3: t.Cleanup undefined (type *testing.T has no field or method Cleanup) ./chromedp_test.go :948:5: t.Cleanup undefined (type *testing.T has no field or method Cleanup) ./chromedp_test.go:950:5: t.Cleanup undefined (type *testing.T has no field or method Cleanup) FAIL github.com/chromedp/chromedp [構(gòu)建失敗]
您需要知道這t.Cleanup
是在 Go 1.14 上添加的(歸功于Oiyoo)。
如果您遇到同樣的問題,我希望這對您有所幫助。
- 1 回答
- 0 關(guān)注
- 220 瀏覽
添加回答
舉報