Skip to content

Commit ea4aaf7

Browse files
michaelpeng36Michael Peng
andauthored
Added more information in the E2E test error messages (#520)
Co-authored-by: Michael Peng <[email protected]>
1 parent 0c5cb85 commit ea4aaf7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/E2E/Azure.Functions.PowerShellWorker.E2E/Azure.Functions.PowerShellWorker.E2E/DurableEndToEndTests.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ public async Task DurableExecutionReplaysCurrentUtcDateTime()
152152

153153
if (!Directory.Exists(lastFolderName))
154154
{
155-
Assert.True(false, $"The directory {lastFolderName} does not exist!");
155+
Assert.True(false, $@"The directory {lastFolderName} does not exist!
156+
The system's value for TMP is {System.Environment.GetEnvironmentVariable("TMP", EnvironmentVariableTarget.Machine)}.
157+
The user's value for TMP is {System.Environment.GetEnvironmentVariable("TMP")}.
158+
The system's value for TEMP is {System.Environment.GetEnvironmentVariable("TEMP", EnvironmentVariableTarget.Machine)}.
159+
The user's value for TEMP is {System.Environment.GetEnvironmentVariable("TEMP")}");
156160
}
157161

158162
string[] lines = System.IO.File.ReadAllLines(path);
@@ -240,7 +244,11 @@ private async Task DurableTimerClientStopsOrchestratorAndUpdatesCurrentUtcDateTi
240244

241245
if (!Directory.Exists(lastFolderName))
242246
{
243-
Assert.True(false, $"The directory {lastFolderName} does not exist!");
247+
Assert.True(false, $@"The directory {lastFolderName} does not exist!
248+
The system's value for TMP is {System.Environment.GetEnvironmentVariable("TMP", EnvironmentVariableTarget.Machine)}.
249+
The user's value for TMP is {System.Environment.GetEnvironmentVariable("TMP")}.
250+
The system's value for TEMP is {System.Environment.GetEnvironmentVariable("TEMP", EnvironmentVariableTarget.Machine)}.
251+
The user's value for TEMP is {System.Environment.GetEnvironmentVariable("TEMP")}");
244252
}
245253

246254
string[] lines = System.IO.File.ReadAllLines(path);

0 commit comments

Comments
 (0)