CrossTalkPM/tests/api/redisAPITest.ts

18 lines
514 B
TypeScript
Raw Normal View History

2024-03-17 18:11:00 +00:00
import { CommentFetcher } from "../../src/rdrama/services/CommentFetcher";
2024-03-18 03:23:37 +00:00
import SessionManager from "../../src/rdrama/session/SessionManager"
2024-03-17 18:11:00 +00:00
main();
async function main(): Promise<void> {
2024-03-18 03:23:37 +00:00
console.log('1')
const axiosSession = SessionManager.getInstance()
console.log('2')
2024-03-17 18:11:00 +00:00
let maxPages = 5
for (let page = 1; page <= maxPages; page++) {
const newComments = await CommentFetcher.fetchComments(page)
}
2024-03-18 03:23:37 +00:00
console.log('3')
await axiosSession.shutdown()
console.log('4')
2024-03-17 18:11:00 +00:00
}