File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ def get_lab_app(
353
353
env_client_secret = "LAB_APP_CLIENT_SECRET" ,
354
354
authority = "https://login.microsoftonline.com/"
355
355
"72f988bf-86f1-41af-91ab-2d7cd011db47" , # Microsoft tenant ID
356
+ timeout = None ,
356
357
** kwargs ):
357
358
"""Returns the lab app as an MSAL confidential client.
358
359
@@ -379,7 +380,7 @@ def get_lab_app(
379
380
client_id ,
380
381
client_credential = client_secret ,
381
382
authority = authority ,
382
- http_client = MinimalHttpClient (),
383
+ http_client = MinimalHttpClient (timeout = timeout ),
383
384
** kwargs )
384
385
385
386
def get_session (lab_app , scopes ): # BTW, this infrastructure tests the confidential client flow
@@ -754,6 +755,7 @@ def test_acquire_token_for_client_should_hit_regional_endpoint(self):
754
755
755
756
authority = "https://login.microsoftonline.com/microsoft.onmicrosoft.com" ,
756
757
region = self .region , # Explicitly use this region, regardless of detection
758
+ timeout = 2 , # Short timeout makes this test case responsive on non-VM
757
759
)
758
760
scopes = ["https://graph.microsoft.com/.default" ]
759
761
result = self .app .acquire_token_for_client (
You can’t perform that action at this time.
0 commit comments