Fix tests
This commit is contained in:
parent
6a719ab95d
commit
6ee745f7f5
|
|
@ -466,7 +466,7 @@ namespace Microsoft.AspNet.Hosting
|
|||
var env = engine.ApplicationServices.GetRequiredService<IHostingEnvironment>();
|
||||
// MapPath requires webroot to be set, we don't care
|
||||
// about file provider so just set it here
|
||||
env.WebRootPath = "";
|
||||
env.WebRootPath = ".";
|
||||
var mappedPath = env.MapPath(virtualPath);
|
||||
expectedSuffix = expectedSuffix.Replace('/', Path.DirectorySeparatorChar);
|
||||
Assert.Equal(Path.Combine(env.WebRootPath, expectedSuffix), mappedPath);
|
||||
|
|
|
|||
Loading…
Reference in New Issue