From 4bb43877c7c4669b89979af4169867c71764759a Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 16 Apr 2022 02:35:20 +0100 Subject: [PATCH] Build test host using given app config file --- test/isnd.tests/UnitTestWebHost.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/isnd.tests/UnitTestWebHost.cs b/test/isnd.tests/UnitTestWebHost.cs index 66dbe9e..b94ac7f 100644 --- a/test/isnd.tests/UnitTestWebHost.cs +++ b/test/isnd.tests/UnitTestWebHost.cs @@ -13,7 +13,6 @@ namespace isnd.host.tests { public class UnitTestWebHost { - const string testingUrl = "http://localhost:5000"; [Fact] @@ -21,7 +20,7 @@ namespace isnd.host.tests { string envVar = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); - IWebHost webhost = BuildWebHost(new string[] { "--urls", testingUrl }); + IWebHost webhost = BuildWebHost(new string[0]); using (var serviceScope = webhost.Services.CreateScope()) {