From 1d5361afbb65463b3ed1a73a9c097377c1988011 Mon Sep 17 00:00:00 2001 From: Nathan Willoughby <86938706+nathanwoctopusdeploy@users.noreply.github.com> Date: Fri, 8 Dec 2023 08:51:27 +1000 Subject: [PATCH] Add missing cancellation error message to the expected exception builder that can be thrown (#734) --- .../Support/ExceptionContractAssertionBuilder.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Octopus.Tentacle.Tests.Integration/Support/ExceptionContractAssertionBuilder.cs b/source/Octopus.Tentacle.Tests.Integration/Support/ExceptionContractAssertionBuilder.cs index 8e28cc03a..b44e46a08 100644 --- a/source/Octopus.Tentacle.Tests.Integration/Support/ExceptionContractAssertionBuilder.cs +++ b/source/Octopus.Tentacle.Tests.Integration/Support/ExceptionContractAssertionBuilder.cs @@ -82,7 +82,8 @@ public ExceptionContract Build() new[] { "Script execution was cancelled", - "A task was canceled." // Cancellation during StartScript while connecting throws the wrong error + "A task was canceled.", // Cancellation during connection can throw this error + "The operation was cancelled" // Cancellation during connection can throw this error }); }