From b6eb2c0da4e653c6fdd278bcbdcd55ec376cd481 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sun, 2 Jul 2023 14:48:47 +0800 Subject: Refactor: move RoomId type to the correct package. Type all room ID usages. --- bilibili/danmaku_server_info_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bilibili/danmaku_server_info_test.go') diff --git a/bilibili/danmaku_server_info_test.go b/bilibili/danmaku_server_info_test.go index 3166304..7cfa8fe 100644 --- a/bilibili/danmaku_server_info_test.go +++ b/bilibili/danmaku_server_info_test.go @@ -1,7 +1,7 @@ package bilibili import ( - "github.com/keuin/slbr/common" + testing2 "github.com/keuin/slbr/common/testing" "github.com/keuin/slbr/logging" "log" "testing" @@ -9,7 +9,7 @@ import ( func TestBilibili_GetDanmakuServerInfo(t *testing.T) { // get an online live room for testing - liveList, err := common.GetLiveListForGuestUser() + liveList, err := testing2.GetLiveListForGuestUser() if err != nil { t.Fatalf("Cannot get live list for testing: %v", err) } @@ -17,7 +17,7 @@ func TestBilibili_GetDanmakuServerInfo(t *testing.T) { if len(lives) <= 0 { t.Fatalf("No available live for guest user") } - roomId := common.RoomId(lives[0].Roomid) + roomId := lives[0].Roomid logger := log.Default() bi := NewBilibili(logging.NewWrappedLogger(logger, "test-logger")) -- cgit v1.2.3