From 821f7ef9a18f88bf8a001cf5297db3f8a251a800 Mon Sep 17 00:00:00 2001 From: Michael Peng Date: Thu, 13 Aug 2020 14:37:19 -0700 Subject: [PATCH] Added more information in the E2E test error messages --- .../DurableEndToEndTests.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/E2E/Azure.Functions.PowerShellWorker.E2E/Azure.Functions.PowerShellWorker.E2E/DurableEndToEndTests.cs b/test/E2E/Azure.Functions.PowerShellWorker.E2E/Azure.Functions.PowerShellWorker.E2E/DurableEndToEndTests.cs index 5c571a99..0c8ecbe2 100644 --- a/test/E2E/Azure.Functions.PowerShellWorker.E2E/Azure.Functions.PowerShellWorker.E2E/DurableEndToEndTests.cs +++ b/test/E2E/Azure.Functions.PowerShellWorker.E2E/Azure.Functions.PowerShellWorker.E2E/DurableEndToEndTests.cs @@ -152,7 +152,11 @@ public async Task DurableExecutionReplaysCurrentUtcDateTime() if (!Directory.Exists(lastFolderName)) { - Assert.True(false, $"The directory {lastFolderName} does not exist!"); + Assert.True(false, $@"The directory {lastFolderName} does not exist! + The system's value for TMP is {System.Environment.GetEnvironmentVariable("TMP", EnvironmentVariableTarget.Machine)}. + The user's value for TMP is {System.Environment.GetEnvironmentVariable("TMP")}. + The system's value for TEMP is {System.Environment.GetEnvironmentVariable("TEMP", EnvironmentVariableTarget.Machine)}. + The user's value for TEMP is {System.Environment.GetEnvironmentVariable("TEMP")}"); } string[] lines = System.IO.File.ReadAllLines(path); @@ -240,7 +244,11 @@ private async Task DurableTimerClientStopsOrchestratorAndUpdatesCurrentUtcDateTi if (!Directory.Exists(lastFolderName)) { - Assert.True(false, $"The directory {lastFolderName} does not exist!"); + Assert.True(false, $@"The directory {lastFolderName} does not exist! + The system's value for TMP is {System.Environment.GetEnvironmentVariable("TMP", EnvironmentVariableTarget.Machine)}. + The user's value for TMP is {System.Environment.GetEnvironmentVariable("TMP")}. + The system's value for TEMP is {System.Environment.GetEnvironmentVariable("TEMP", EnvironmentVariableTarget.Machine)}. + The user's value for TEMP is {System.Environment.GetEnvironmentVariable("TEMP")}"); } string[] lines = System.IO.File.ReadAllLines(path);