Skip to content

Commit 363d4b3

Browse files
fix geolocation test
1 parent b13b284 commit 363d4b3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/emulation/test_geolocation.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,11 @@ async def test_geolocation_emulate_unavailable(websocket, context_id,
166166

167167
@pytest.mark.asyncio
168168
async def test_geolocation_per_user_context(websocket, url_example,
169-
url_example_another_origin,
170169
user_context_id, create_context,
171170
snapshot):
172-
# `url_example_another_origin` is required as `local_server_http` can
173-
# be dead-locked in case of concurrent requests.
174-
175171
await set_permission(websocket, get_origin(url_example),
176172
{'name': 'geolocation'}, 'granted', "default")
177-
await set_permission(websocket, get_origin(url_example_another_origin),
173+
await set_permission(websocket, get_origin(url_example),
178174
{'name': 'geolocation'}, 'granted', user_context_id)
179175

180176
# Set different geolocation overrides for different user contexts.
@@ -203,8 +199,7 @@ async def test_geolocation_per_user_context(websocket, url_example,
203199
assert emulated_geolocation_1 == snapshot()
204200

205201
browsing_context_id_2 = await create_context(user_context_id)
206-
await goto_url(websocket, browsing_context_id_2,
207-
url_example_another_origin)
202+
await goto_url(websocket, browsing_context_id_2, url_example)
208203
emulated_geolocation_2 = await get_geolocation(websocket,
209204
browsing_context_id_2)
210205
assert emulated_geolocation_2 == snapshot()

0 commit comments

Comments
 (0)