Removing a fixed waittime of 25 seconds on mono

Setting an increased retry wait time. Now test will wait for 42 seconds before giving up.
This commit is contained in:
Praburaj 2015-02-03 15:09:26 -08:00
parent e26705e2de
commit 5df0d884aa
2 changed files with 3 additions and 4 deletions

View File

@ -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;
}

View File

@ -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
}
}
}