diff --git a/test/E2ETests/Common/DeploymentUtility.cs b/test/E2ETests/Common/DeploymentUtility.cs index a7f9ca0853..177d38f2e0 100644 --- a/test/E2ETests/Common/DeploymentUtility.cs +++ b/test/E2ETests/Common/DeploymentUtility.cs @@ -205,8 +205,6 @@ namespace E2ETests var hostProcess = Process.Start(startInfo); logger.WriteInformation("Started {0}. Process Id : {1}", hostProcess.MainModule.FileName, hostProcess.Id); - Thread.Sleep(25 * 1000); - return hostProcess; } diff --git a/test/E2ETests/Common/Helpers.cs b/test/E2ETests/Common/Helpers.cs index fc48ed6828..03f21a03de 100644 --- a/test/E2ETests/Common/Helpers.cs +++ b/test/E2ETests/Common/Helpers.cs @@ -22,6 +22,7 @@ namespace E2ETests { try { + logger.WriteWarning("Retry count {0}..", retry + 1); retryBlock(); break; //Went through successfully } @@ -30,8 +31,8 @@ namespace E2ETests if (exception.InnerException is HttpRequestException || exception.InnerException is WebException) { logger.WriteWarning("Failed to complete the request.", exception); - logger.WriteWarning("Retrying request.."); - Thread.Sleep(1 * 1000); //Wait for a second before retry + var waitTimeInMilliSeconds = (RunningOnMono ? 6 : 1) * 1000; + Thread.Sleep(waitTimeInMilliSeconds); //Wait for a second before retry } } }