From 15d34fdc2ef7b1434a5d2619f29a83931ab77e01 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Tue, 30 Jul 2019 14:56:41 -0700 Subject: [PATCH] Make LRO tests faster (#107) --- test/azure/AcceptanceTests/asynctests/test_lro.py | 2 +- test/azure/AcceptanceTests/test_lro.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/azure/AcceptanceTests/asynctests/test_lro.py b/test/azure/AcceptanceTests/asynctests/test_lro.py index 2cad4f95331..52088434ee0 100644 --- a/test/azure/AcceptanceTests/asynctests/test_lro.py +++ b/test/azure/AcceptanceTests/asynctests/test_lro.py @@ -88,7 +88,7 @@ async def request_status(self, status_link): async def client(): """Create a AutoRestLongRunningOperationTestService client with test server credentials.""" cred = BasicTokenAuthentication({"access_token" :str(uuid4())}) - async with AutoRestLongRunningOperationTestService(cred, base_url="http://localhost:3000") as client: + async with AutoRestLongRunningOperationTestService(cred, base_url="http://localhost:3000", polling_interval=0) as client: yield client diff --git a/test/azure/AcceptanceTests/test_lro.py b/test/azure/AcceptanceTests/test_lro.py index 65b5d31080a..17b76ed48d8 100644 --- a/test/azure/AcceptanceTests/test_lro.py +++ b/test/azure/AcceptanceTests/test_lro.py @@ -98,7 +98,7 @@ def client(cookie_policy): cookie_policy ] - with AutoRestLongRunningOperationTestService(cred, base_url="http://localhost:3000", policies=policies) as client: + with AutoRestLongRunningOperationTestService(cred, base_url="http://localhost:3000", policies=policies, polling_interval=0) as client: yield client