From 586f04e3d09045296e9333a8d3939f33b58149ce Mon Sep 17 00:00:00 2001 From: Igor Malinovskiy Date: Fri, 17 Jan 2025 13:16:40 +0100 Subject: [PATCH] Format --- tests/NRedisStack.Tests/AbstractNRedisStackTest.cs | 2 +- tests/NRedisStack.Tests/Search/SearchTests.cs | 3 --- .../TokenBasedAuthentication/AuthenticationTests.cs | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/NRedisStack.Tests/AbstractNRedisStackTest.cs b/tests/NRedisStack.Tests/AbstractNRedisStackTest.cs index 5d5087a7..77ec122c 100644 --- a/tests/NRedisStack.Tests/AbstractNRedisStackTest.cs +++ b/tests/NRedisStack.Tests/AbstractNRedisStackTest.cs @@ -57,7 +57,7 @@ protected void SkipIfTargetConnectionDoesNotExist(string id) { Skip.IfNot(EndpointsFixture.IsTargetConnectionExist(id), $"The connection with id '{id}' is not configured."); } - + private List keyNames = new List(); protected internal string CreateKeyName([CallerMemberName] string memberName = "") => CreateKeyNames(1, memberName)[0]; diff --git a/tests/NRedisStack.Tests/Search/SearchTests.cs b/tests/NRedisStack.Tests/Search/SearchTests.cs index fc21b682..36948c77 100644 --- a/tests/NRedisStack.Tests/Search/SearchTests.cs +++ b/tests/NRedisStack.Tests/Search/SearchTests.cs @@ -1954,7 +1954,6 @@ public async Task TestFiltersAsync(string endpointId) } [Fact] - [MemberData(nameof(EndpointsFixture.Env.StandaloneOnly), MemberType = typeof(EndpointsFixture.Env))] public void TestQueryCommandBuilder() { var testQuery = new Query("foo").HighlightFields(new Query.HighlightTags("", ""), "txt") @@ -2052,7 +2051,6 @@ public void TestQueryCommandBuilder() } [Fact] - [MemberData(nameof(EndpointsFixture.Env.StandaloneOnly), MemberType = typeof(EndpointsFixture.Env))] public void TestQueryCommandBuilderReturnField() { var testQuery = new Query("foo").HighlightFields("txt") @@ -2088,7 +2086,6 @@ public void TestQueryCommandBuilderReturnField() } [Fact] - [MemberData(nameof(EndpointsFixture.Env.StandaloneOnly), MemberType = typeof(EndpointsFixture.Env))] public void TestQueryCommandBuilderScore() { // TODO: write better test for scores and payloads diff --git a/tests/NRedisStack.Tests/TokenBasedAuthentication/AuthenticationTests.cs b/tests/NRedisStack.Tests/TokenBasedAuthentication/AuthenticationTests.cs index 3f0668e4..ef8e9fcc 100644 --- a/tests/NRedisStack.Tests/TokenBasedAuthentication/AuthenticationTests.cs +++ b/tests/NRedisStack.Tests/TokenBasedAuthentication/AuthenticationTests.cs @@ -23,7 +23,7 @@ public void TestTokenBasedAuthentication() { // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.StandaloneEntraId); - + var configurationOptions = new ConfigurationOptions().ConfigureForAzureWithTokenCredentialAsync(new DefaultAzureCredential()).Result!; configurationOptions.Ssl = false; configurationOptions.AbortOnConnectFail = true; // Fail fast for the purposes of this sample. In production code, this should remain false to retry connections on startup