From f5c63cde56eb35c0125a0545f084441cdd4340ab Mon Sep 17 00:00:00 2001 From: Keuin Date: Tue, 11 Jul 2023 22:56:07 +0800 Subject: Refactor: move data structures to a separate package to avoid circular dependency. --- bilibili/room_status_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bilibili/room_status_test.go') diff --git a/bilibili/room_status_test.go b/bilibili/room_status_test.go index dde99f7..b287fbe 100644 --- a/bilibili/room_status_test.go +++ b/bilibili/room_status_test.go @@ -3,6 +3,7 @@ package bilibili import ( testing2 "github.com/keuin/slbr/common/testing" "github.com/keuin/slbr/logging" + "github.com/keuin/slbr/types" "log" "testing" ) @@ -29,7 +30,7 @@ func TestBilibili_GetRoomPlayInfo(t *testing.T) { resp.Message != "0" || resp.Data.UID <= 0 || resp.Data.RoomID != uint64(roomId) || - resp.Data.LiveStatus != Streaming { + resp.Data.LiveStatus != types.Streaming { t.Fatalf("Invalid GetRoomPlayInfo response: %v", resp) } } -- cgit v1.2.3