diff --git a/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/NginxDeployer.cs b/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/NginxDeployer.cs index d7890419d1..1bc6c4b766 100644 --- a/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/NginxDeployer.cs +++ b/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/NginxDeployer.cs @@ -133,7 +133,7 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting { using (Logger.BeginScope("Dispose")) { - if (!string.IsNullOrEmpty(_configFile)) + if (File.Exists(_configFile)) { var startInfo = new ProcessStartInfo {