diff --git a/test/E2ETests/DeploymentUtility.cs b/test/E2ETests/DeploymentUtility.cs index ec534a8c12..f030c35a1d 100644 --- a/test/E2ETests/DeploymentUtility.cs +++ b/test/E2ETests/DeploymentUtility.cs @@ -88,6 +88,8 @@ namespace E2ETests }; var hostProcess = Process.Start(startInfo); + //Sometimes reading MainModule returns null if called immediately after starting process. + Thread.Sleep(1 * 1000); Console.WriteLine("Started {0}. Process Id : {1}", hostProcess.MainModule.FileName, hostProcess.Id); WaitTillDbCreated(identityDbName);