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(
353353 env_client_secret = "LAB_APP_CLIENT_SECRET" ,
354354 authority = "https://login.microsoftonline.com/"
355355 "72f988bf-86f1-41af-91ab-2d7cd011db47" , # Microsoft tenant ID
356+ timeout = None ,
356357 ** kwargs ):
357358 """Returns the lab app as an MSAL confidential client.
358359
@@ -379,7 +380,7 @@ def get_lab_app(
379380 client_id ,
380381 client_credential = client_secret ,
381382 authority = authority ,
382- http_client = MinimalHttpClient (),
383+ http_client = MinimalHttpClient (timeout = timeout ),
383384 ** kwargs )
384385
385386def 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):
754755
755756 authority = "https://login.microsoftonline.com/microsoft.onmicrosoft.com" ,
756757 region = self .region , # Explicitly use this region, regardless of detection
758+ timeout = 2 , # Short timeout makes this test case responsive on non-VM
757759 )
758760 scopes = ["https://graph.microsoft.com/.default" ]
759761 result = self .app .acquire_token_for_client (
You can’t perform that action at this time.
0 commit comments