Skip to content

Commit

Permalink
Get buvid before running test
Browse files Browse the repository at this point in the history
  • Loading branch information
keuin committed Jul 29, 2023
1 parent c4dbd4a commit 7a8f91d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bilibili/play_url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a8f91d

Please sign in to comment.