Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwoctopusdeploy committed Dec 5, 2023
1 parent c8fdca0 commit 80a8ea9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ await clientTentacle.TentacleClient.ExecuteScript(startScriptCommand,
actualException = ex;
}

actualException.Should().NotBeNull().And.BeOfType<OperationCanceledException>().And.Match<Exception>(x => x.Message == "Script execution was cancelled");
var expectedException = new ExceptionContractAssertionBuilder(FailureScenario.ScriptExecutionCancelled, tentacleConfigurationTestCase, clientTentacle)
.ForScriptService(ScriptServiceOperation.CancelScript).Build();

actualException.Should().NotBeNull();
actualException!.ShouldMatchExceptionContract(expectedException);

var allLogs = logs.JoinLogs();
allLogs.Should().Contain("hello");
Expand Down

0 comments on commit 80a8ea9

Please sign in to comment.