diff --git a/NzbDrone.Integration.Test/IntegrationTest.cs b/NzbDrone.Integration.Test/IntegrationTest.cs index e5da7f81b..cf2118790 100644 --- a/NzbDrone.Integration.Test/IntegrationTest.cs +++ b/NzbDrone.Integration.Test/IntegrationTest.cs @@ -57,10 +57,18 @@ private void PackageStart() { AppDate = Path.Combine(Directory.GetCurrentDirectory(), "_intg_" + DateTime.Now.Ticks); - Start("..\\..\\..\\..\\_output\\NzbDrone.Console.exe"); + if (BuildInfo.IsDebug) + { + Start("..\\..\\..\\..\\_output\\NzbDrone.Console.exe"); + } + else + { + Start("bin\\NzbDrone.Console.exe"); + } while (RestClient.Get(new RestRequest("system/status")).ResponseStatus != ResponseStatus.Completed) { + Thread.Sleep(1000); } }