fix(api): use the correct test resource

This commit is contained in:
Harsh Shandilya 2023-09-14 23:17:15 +05:30
parent edea0c6ab1
commit e283584999
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ class ApiTest {
assertIs<Success<CSRFToken>>(token)
assertThat(token.value.value)
.isEqualTo(
"oLI2VtS7LbkvxzGZQXgvl3E88RSwOw38Z_nlkxTk5r9JUznOv7sS8BeV_8h-jmI3aMJBh1mdRz4ckl8ItW3tlA"
"OZWykgFemPVeOSNmB53-ccKXe458X7xCInO1-qzFU6nk_9RCSrSQqS9OPmA5_pyy8qD3IYAIZ7XfAM3gdhJpkQ"
)
}
}

View file

@ -41,7 +41,7 @@ class ApiWrapper(controller: EitherNetController<LobstersApi>) {
controller.enqueue(LobstersApi::getCSRFToken) {
success(
CSRFTokenConverter.convert(
ResponseBody.create(MediaType.get("text/html"), getResource("search_chatgpt_page.html"))
ResponseBody.create(MediaType.get("text/html"), getResource("csrf_page.html"))
)
)
}