Skip to content

Commit d00ce3a

Browse files
committed
Removing unnecessary call to sleep during test re-execution
1 parent 9b0b3f8 commit d00ce3a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/TestExecutionHelpers.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure.Commands.Utilities.Common;
1716

1817
namespace Microsoft.Azure.Commands.ScenarioTest
1918
{
@@ -37,11 +36,7 @@ public static void RetryAction(Action testAction, int maxTries = 3)
3736
}
3837
catch (Exception)
3938
{
40-
if (++tries < maxTries)
41-
{
42-
TestMockSupport.Delay(TimeSpan.FromSeconds(1));
43-
}
44-
else
39+
if (++tries >= maxTries)
4540
{
4641
throw;
4742
}

0 commit comments

Comments
 (0)