Skip to content

Commit 6f46e52

Browse files
Change file existence check in GxHttpClientTest
Updated file existence assertion to use GxContext.StaticPhysicalPath.
1 parent 7359f2b commit 6f46e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/test/DotNetUnitTest/Domain/GxHttpClientTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public void ToRelativeFile()
198198
client.BaseURL = "/dummy/lem.txt";
199199
client.Execute("GET", string.Empty);
200200
client.ToFile("./lem.txt");
201-
Assert.True(File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "lem.txt")));
201+
Assert.True(File.Exists(Path.Combine(GxContext.StaticPhysicalPath(), "lem.txt")), $"HttpClient.ToFile failed to create the file at path: {GxContext.StaticPhysicalPath()}");
202202
}
203203
}
204204

0 commit comments

Comments
 (0)