Skip to content

Commit

Permalink
test: fix proxy rotation e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed Oct 4, 2023
1 parent aa7168f commit 5855ff3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/proxy-rotation/actor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ await Actor.main(async () => {
proxyConfiguration: await Actor.createProxyConfiguration(),
maxConcurrency: 1,
sessionPoolOptions: { sessionOptions: { maxUsageCount: 1 } },
async requestHandler({ page }) {
const pageContent = await page.evaluate(() => document.body.children[0].innerText);
const { clientIp } = JSON.parse(pageContent);
async requestHandler({ response }) {
const { clientIp } = await response.json();

const presentAlready = await KeyValueStore.getValue(clientIp);
if (presentAlready) {
Expand Down

0 comments on commit 5855ff3

Please sign in to comment.