@@ -166,15 +166,11 @@ async def test_geolocation_emulate_unavailable(websocket, context_id,
166
166
167
167
@pytest .mark .asyncio
168
168
async def test_geolocation_per_user_context (websocket , url_example ,
169
- url_example_another_origin ,
170
169
user_context_id , create_context ,
171
170
snapshot ):
172
- # `url_example_another_origin` is required as `local_server_http` can
173
- # be dead-locked in case of concurrent requests.
174
-
175
171
await set_permission (websocket , get_origin (url_example ),
176
172
{'name' : 'geolocation' }, 'granted' , "default" )
177
- await set_permission (websocket , get_origin (url_example_another_origin ),
173
+ await set_permission (websocket , get_origin (url_example ),
178
174
{'name' : 'geolocation' }, 'granted' , user_context_id )
179
175
180
176
# Set different geolocation overrides for different user contexts.
@@ -203,8 +199,7 @@ async def test_geolocation_per_user_context(websocket, url_example,
203
199
assert emulated_geolocation_1 == snapshot ()
204
200
205
201
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 )
208
203
emulated_geolocation_2 = await get_geolocation (websocket ,
209
204
browsing_context_id_2 )
210
205
assert emulated_geolocation_2 == snapshot ()
0 commit comments