summaryrefslogtreecommitdiff
path: root/bilibili/request_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bilibili/request_test.go')
-rw-r--r--bilibili/request_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/bilibili/request_test.go b/bilibili/request_test.go
index 68e5c7a..58b7127 100644
--- a/bilibili/request_test.go
+++ b/bilibili/request_test.go
@@ -1,12 +1,14 @@
package bilibili
import (
+ "bilibili-livestream-archiver/logging"
+ "log"
"testing"
)
func Test_callGet(t *testing.T) {
// an always-fail request should not panic
- bi := NewBilibili()
+ bi := NewBilibili(logging.NewWrappedLogger(log.Default(), "main"))
_, err := callGet[BaseResponse[struct{}]](bi, "https://256.256.256.256")
if err == nil {
t.Fatalf("the artificial request should fail, but it haven't")