Skip to content

Commit 35ec252

Browse files
committed
Try to fix tests
1 parent 61317ae commit 35ec252

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_e2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ class WorldWideRegionalEndpointTestCase(LabBasedTestCase):
11521152
These tests verify that MSAL correctly routes requests to regional vs global endpoints.
11531153
"""
11541154
region = "westus"
1155-
timeout = 2 # Short timeout makes this test case responsive on non-VM
1155+
timeout = 5 # Short timeout makes this test case responsive on non-VM
11561156

11571157
def _test_acquire_token_for_client(self, configured_region, expected_region):
11581158
"""This is the only grant supported by regional endpoint, for now.

tests/test_mi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def test_arc_by_file_existence_on_linux(self, mocked_exists):
462462

463463
@patch("msal.managed_identity.os.path.exists", return_value=True)
464464
@patch("msal.managed_identity.sys.platform", new="win32")
465-
@patch.dict(os.environ, {"ProgramFiles": "C:\Program Files"})
465+
@patch.dict(os.environ, {"ProgramFiles": r"C:\Program Files"})
466466
def test_arc_by_file_existence_on_windows(self, mocked_exists):
467467
self.assertEqual(get_managed_identity_source(), AZURE_ARC)
468468
mocked_exists.assert_called_with(

0 commit comments

Comments
 (0)