Skip to content

Commit ce70fae

Browse files
author
Hovsep Mkrtchyan
committed
Fixed SaveAzureWebsiteLogTest
1 parent 05327e3 commit ce70fae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ServiceManagement/Services/Commands.Test/Websites/SaveAzureWebsiteLogTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public void SaveAzureWebsiteLogTest()
9595

9696
getAzureWebsiteLogCommand.DefaultCurrentPath = AppDomain.CurrentDomain.BaseDirectory;
9797
getAzureWebsiteLogCommand.ExecuteCmdlet();
98-
Assert.Equal("test", FileUtilities.DataStore.ReadFileAsText(SaveAzureWebsiteLogCommand.DefaultOutput));
98+
Assert.Equal("test", FileUtilities.DataStore.ReadFileAsText(
99+
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, SaveAzureWebsiteLogCommand.DefaultOutput)));
99100
}
100101

101102
[Fact]
@@ -155,7 +156,8 @@ public void SaveAzureWebsiteLogWithSlotTest()
155156

156157
getAzureWebsiteLogCommand.DefaultCurrentPath = AppDomain.CurrentDomain.BaseDirectory;
157158
getAzureWebsiteLogCommand.ExecuteCmdlet();
158-
Assert.Equal("test", FileUtilities.DataStore.ReadFileAsText(SaveAzureWebsiteLogCommand.DefaultOutput));
159+
Assert.Equal("test", FileUtilities.DataStore.ReadFileAsText(
160+
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, SaveAzureWebsiteLogCommand.DefaultOutput)));
159161
}
160162
}
161163
}

0 commit comments

Comments
 (0)