diff --git a/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs b/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs index 2171a6a9ef..cdb07ef61d 100644 --- a/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs +++ b/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs @@ -1,5 +1,4 @@ using System; -using System.IO; using Microsoft.AspNet.Authentication.Facebook; using Microsoft.AspNet.Authentication.Google; using Microsoft.AspNet.Authentication.MicrosoftAccount; @@ -32,13 +31,8 @@ namespace MusicStore //then the later source will win. By this way a Local config can be overridden by a different setting while deployed remotely. Configuration = new Configuration() .AddJsonFile("config.json") - .AddEnvironmentVariables(); //All environment variables in the process's context flow in as configuration values. - - // Used to override some configuration parameters that cannot be overridden by environment. - if (File.Exists(Path.Combine(appEnvironment.ApplicationBasePath, "configoverride.json"))) - { - ((Configuration)Configuration).AddJsonFile("configoverride.json"); - } + .AddEnvironmentVariables() //All environment variables in the process's context flow in as configuration values. + .AddJsonFile("configoverride.json", optional: true); // Used to override some configuration parameters that cannot be overridden by environment. } public IConfiguration Configuration { get; private set; }