Skip to content

Commit 4e7d473

Browse files
authored
Merge pull request Azure#4890 from sichoudh/preview
Set LRO TimeOut to Zero for only Playback Mode
2 parents b17c618 + a6d909c commit 4e7d473

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockClientFactory.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,13 @@ public TClient CreateCustomArmClient<TClient>(params object[] parameters) where
255255
}
256256
}
257257

258-
IAzureClient azureClient = client as IAzureClient;
259-
if (azureClient != null)
258+
if (TestMockSupport.RunningMocked)
260259
{
261-
azureClient.LongRunningOperationRetryTimeout = 0;
260+
IAzureClient azureClient = client as IAzureClient;
261+
if (azureClient != null)
262+
{
263+
azureClient.LongRunningOperationRetryTimeout = 0;
264+
}
262265
}
263266

264267
return client;

0 commit comments

Comments
 (0)