Skip to content

Commit 60943eb

Browse files
committed
Fix test on Unix
1 parent 38bead6 commit 60943eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Http.Results/test/ResultsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ private static string GetMemberName(Expression expression)
918918
(() => Results.Empty, typeof(EmptyHttpResult)),
919919
(() => Results.File(new byte[0], null, null, false, null, null), typeof(FileContentHttpResult)),
920920
(() => Results.File(new MemoryStream(), null, null, null, null, false), typeof(FileStreamHttpResult)),
921-
(() => Results.File("C:\\path", null, null, null, null, false), typeof(PhysicalFileHttpResult)),
921+
(() => Results.File(Path.Join(Path.DirectorySeparatorChar.ToString(), "rooted", "path"), null, null, null, null, false), typeof(PhysicalFileHttpResult)),
922922
(() => Results.File("path", null, null, null, null, false), typeof(VirtualFileHttpResult)),
923923
(() => Results.Forbid(null, null), typeof(ForbidHttpResult)),
924924
(() => Results.Json(new(), null, null, null), typeof(JsonHttpResult<object>)),

0 commit comments

Comments
 (0)