Addtl Testing Logic
parent
99d39524bd
commit
98830cb0ff
|
@ -1,10 +1,18 @@
|
||||||
import { CommentFetcher } from "../../src/rdrama/services/CommentFetcher";
|
import { CommentFetcher } from "../../src/rdrama/services/CommentFetcher";
|
||||||
|
import SessionManager from "../../src/rdrama/session/SessionManager"
|
||||||
|
|
||||||
main();
|
main();
|
||||||
|
|
||||||
async function main(): Promise<void> {
|
async function main(): Promise<void> {
|
||||||
|
console.log('1')
|
||||||
|
const axiosSession = SessionManager.getInstance()
|
||||||
|
console.log('2')
|
||||||
let maxPages = 5
|
let maxPages = 5
|
||||||
for (let page = 1; page <= maxPages; page++) {
|
for (let page = 1; page <= maxPages; page++) {
|
||||||
const newComments = await CommentFetcher.fetchComments(page)
|
const newComments = await CommentFetcher.fetchComments(page)
|
||||||
}
|
}
|
||||||
|
console.log('3')
|
||||||
|
await axiosSession.shutdown()
|
||||||
|
console.log('4')
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue