From 7a8f91d2297d5f43378a5f181ae34aaef6a82367 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 29 Jul 2023 20:39:13 +0800 Subject: Get buvid before running test --- bilibili/play_url_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bilibili') diff --git a/bilibili/play_url_test.go b/bilibili/play_url_test.go index 1ec0729..cc270db 100644 --- a/bilibili/play_url_test.go +++ b/bilibili/play_url_test.go @@ -21,6 +21,10 @@ func TestBilibili_GetStreamingInfo(t *testing.T) { logger := log.Default() bi := NewBilibili(logging.NewWrappedLogger(logger, "test-logger")) + _, err = bi.GetBUVID() + if err != nil { + t.Fatalf("GetBUVID: %v", err) + } info, err := bi.GetStreamingInfo(roomId) if err != nil { t.Fatalf("GetStreamingInfo: %v", err) -- cgit v1.2.3