Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,8 @@ public async Task CurrentUtcDateTimeClientReplaysCurrentUtcDateTime()
{
var statusResponseBody = await GetResponseBodyAsync(statusResponse);
Assert.Equal("Completed", (string)statusResponseBody.runtimeStatus);
string path = statusResponseBody.output.ToString();
string lastFolderName = Path.GetDirectoryName(path);

if (!Directory.Exists(lastFolderName))
{
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);
string log = statusResponseBody.output.ToString();
string[] lines = log.Split('\n');

// Expect the format to be as in Case 1
var delineatorLines = new int[] { 0, 3, 9 };
Expand Down Expand Up @@ -239,19 +228,8 @@ private async Task DurableTimerClientStopsOrchestratorAndUpdatesCurrentUtcDateTi
{
var statusResponseBody = await GetResponseBodyAsync(statusResponse);
Assert.Equal("Completed", (string)statusResponseBody.runtimeStatus);
string path = statusResponseBody.output.ToString();
string lastFolderName = Path.GetDirectoryName(path);

if (!Directory.Exists(lastFolderName))
{
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);
string log = statusResponseBody.output.ToString();
string[] lines = log.Split('\n');

// Expect the format to be as in Case 1
var delineatorLines = new int[] { 0, 2 };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Add-Content -Value $Context.CurrentUtcDateTime -Path $path

Write-Host "CurrentUtcDateTimeOrchestrator: finished."

return $path
return (Get-Content $path) -join "`n"

<#
Contents of the file should resemble one of the following two cases:
Expand Down
2 changes: 1 addition & 1 deletion test/E2E/TestFunctionApp/DurableTimerOrchestrator/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Add-Content -Value $Context.CurrentUtcDateTime -Path $path

Write-Host "DurableTimerOrchestrator: finished."

return $path
return (Get-Content $path) -join "`n"

<#
Contents of the file should resemble the following:
Expand Down