Skip to content

Commit 246afed

Browse files
author
unknown
committed
Retry setting up vnet during initialization of Static CA tests.
1 parent ebbd4df commit 246afed

File tree

1 file changed

+3
-1
lines changed
  • src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests

1 file changed

+3
-1
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests/StaticCATests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,9 @@ private static void ReadVnetConfig()
624624

625625
private static void SetVNetForStaticCAtest()
626626
{
627-
vmPowershellCmdlets.SetAzureVNetConfig(Directory.GetCurrentDirectory() + "\\StaticCAvnetconfig.netcfg");
627+
Utilities.RetryActionUntilSuccess(
628+
() => vmPowershellCmdlets.SetAzureVNetConfig(Directory.GetCurrentDirectory() + "\\StaticCAvnetconfig.netcfg"),
629+
"in use", 10, 30);
628630
}
629631

630632
private static void CleanUpVnetConfigForStaticCA()

0 commit comments

Comments
 (0)