Skip to content

Commit 5926a20

Browse files
committed
Update flaky test
1 parent 55fd416 commit 5926a20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests_asyncio/test_browser_contexts.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def test_context_kwargs(self):
4242
async def test_contexts_max_pages(self):
4343
settings = {
4444
"PLAYWRIGHT_BROWSER_TYPE": self.browser_type,
45-
"PLAYWRIGHT_MAX_PAGES_PER_CONTEXT": 2,
45+
"PLAYWRIGHT_MAX_PAGES_PER_CONTEXT": 1,
4646
"PLAYWRIGHT_CONTEXTS": {
4747
"a": {"java_script_enabled": True},
4848
"b": {"java_script_enabled": True},
@@ -71,7 +71,7 @@ async def test_contexts_max_pages(self):
7171
]
7272
await asyncio.gather(*requests)
7373

74-
assert handler.stats.get_value("playwright/page_count/max_concurrent") == 4
74+
assert handler.stats.get_value("playwright/page_count/max_concurrent") == 2
7575

7676
@allow_windows
7777
async def test_max_contexts(self):

0 commit comments

Comments
 (0)