From d665868bdc8b78e9b8da567e4ee07cf0675a54cd Mon Sep 17 00:00:00 2001 From: AndriySvyryd Date: Tue, 16 Jun 2020 09:36:05 -0700 Subject: [PATCH] Unify connection string in Cosmos tests --- .../TestUtilities/TestEnvironment.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/EFCore.Cosmos.FunctionalTests/TestUtilities/TestEnvironment.cs b/test/EFCore.Cosmos.FunctionalTests/TestUtilities/TestEnvironment.cs index 272f0362a46..81ced91c0e2 100644 --- a/test/EFCore.Cosmos.FunctionalTests/TestUtilities/TestEnvironment.cs +++ b/test/EFCore.Cosmos.FunctionalTests/TestUtilities/TestEnvironment.cs @@ -25,9 +25,7 @@ public static class TestEnvironment ? "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==" : Config["AuthToken"]; - public static string ConnectionString { get; } = string.IsNullOrEmpty(Config["ConnectionString"]) - ? "AccountEndpoint=https://localhost:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==" - : Config["ConnectionString"]; + public static string ConnectionString { get; } = $"AccountEndpoint={DefaultConnection};AccountKey={AuthToken}"; public static bool IsEmulator { get; } = DefaultConnection.StartsWith("https://localhost:8081", StringComparison.Ordinal); }