fix(#IWOXW): CentOS单元测试失效
#Comment comment #IWOXW #Issue close https://gitee.com/LongbowEnterprise/dashboard/issues?id=IWOXW
This commit is contained in:
parent
715857b2ba
commit
cadcd20db0
|
@ -5,6 +5,7 @@ using Microsoft.AspNetCore.Mvc.Testing.Handlers;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using UnitTest;
|
using UnitTest;
|
||||||
|
@ -116,7 +117,7 @@ namespace Bootstrap.Admin
|
||||||
base.ConfigureWebHost(builder);
|
base.ConfigureWebHost(builder);
|
||||||
|
|
||||||
var config = new ConfigurationBuilder();
|
var config = new ConfigurationBuilder();
|
||||||
config.AddJsonFile(TestHelper.RetrievePath("UnitTest\\appsettings.json"), false, true);
|
config.AddJsonFile(TestHelper.RetrievePath($"UnitTest{Path.DirectorySeparatorChar}appsettings.json"), false, true);
|
||||||
config.AddEnvironmentVariables();
|
config.AddEnvironmentVariables();
|
||||||
var con = config.Build();
|
var con = config.Build();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue