Skip to content

Commit 86ac0a4

Browse files
committed
Update test
1 parent 6d23d0e commit 86ac0a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/tests_asyncio/test_playwright_requests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import asyncio
12
import json
23
import logging
34
import platform
@@ -112,6 +113,7 @@ async def test_route_continue_exception(self, logger):
112113
async with make_handler({"PLAYWRIGHT_BROWSER_TYPE": self.browser_type}) as handler:
113114
scrapy_request = Request(url="https://example.org", method="GET")
114115
spider = Spider("foo")
116+
initial_request_done = asyncio.Event()
115117
req_handler = handler._make_request_handler(
116118
context_name=DEFAULT_CONTEXT_NAME,
117119
method=scrapy_request.method,
@@ -120,6 +122,7 @@ async def test_route_continue_exception(self, logger):
120122
body=None,
121123
encoding="utf-8",
122124
spider=spider,
125+
initial_request_done=initial_request_done,
123126
)
124127
route = MagicMock()
125128
playwright_request = AsyncMock()

0 commit comments

Comments
 (0)