From c2f15ded0f3c7f2a900b105980b1c62cbd73a729 Mon Sep 17 00:00:00 2001 From: Brett Samblanet Date: Thu, 8 Mar 2018 06:13:44 -0800 Subject: [PATCH] adding exception logging to test --- .../AsyncChainEndToEndTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Microsoft.Azure.WebJobs.Host.EndToEndTests/AsyncChainEndToEndTests.cs b/test/Microsoft.Azure.WebJobs.Host.EndToEndTests/AsyncChainEndToEndTests.cs index 79c07e1bc..3965d2805 100644 --- a/test/Microsoft.Azure.WebJobs.Host.EndToEndTests/AsyncChainEndToEndTests.cs +++ b/test/Microsoft.Azure.WebJobs.Host.EndToEndTests/AsyncChainEndToEndTests.cs @@ -372,7 +372,7 @@ private void ValidateTraceProperties(TestTraceWriter trace) else { int count = traceEvent.Properties.Count; - string errorMessage = $"Expected 0 properties. Actual: {count}. Message: '{traceEvent.Message}'. Properties: {Environment.NewLine}"; + string errorMessage = $"Expected 0 properties. Actual: {count}. Message: '{traceEvent.Message}'. Exception: '{traceEvent.Exception?.ToString()}'. Properties: {Environment.NewLine}"; errorMessage += string.Join(Environment.NewLine, traceEvent.Properties.Select(p => $"{p.Key}: {p.Value}")); Assert.True(count == 0, errorMessage); }