diff --git a/source/Octopus.Tentacle.Tests/Integration/ScriptServiceV2Fixture.cs b/source/Octopus.Tentacle.Tests/Integration/ScriptServiceV2Fixture.cs index d5c771eef..b34d648d1 100644 --- a/source/Octopus.Tentacle.Tests/Integration/ScriptServiceV2Fixture.cs +++ b/source/Octopus.Tentacle.Tests/Integration/ScriptServiceV2Fixture.cs @@ -191,7 +191,8 @@ public async Task StartScriptShouldWaitForAShortScriptToFinish() { var startScriptCommand = new StartScriptCommandV2Builder() .WithScriptBody("echo \"finished\"") - .WithDurationStartScriptCanWaitForScriptToFinish(TimeSpan.FromSeconds(5)) + // Generous so a slow shell startup on a busy build agent doesn't exceed the window. StartScript returns as soon as the script completes, so this doesn't slow the test down. + .WithDurationStartScriptCanWaitForScriptToFinish(TimeSpan.FromSeconds(60)) .WithIsolation(ScriptIsolationLevel.NoIsolation) .Build();