Skip to content

Commit 5edc928

Browse files
committed
Fix formatting
1 parent f1182f6 commit 5edc928

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/NRedisStack.Tests/Search/SearchTests.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,29 +62,29 @@ private async Task AssertDatabaseSizeAsync(IDatabase db, int expected)
6262
{
6363
Assert.Equal(expected, await DatabaseSizeAsync(db));
6464
}
65-
65+
6666
private void AssertIndexSize(ISearchCommands ft, string index, int expected)
6767
{
68-
long indexed = -1;
68+
long indexed = -1;
6969
// allow search time to catch up
7070
for (int i = 0; i < 10; i++)
7171
{
7272
indexed = ft.Info(index).NumDocs;
73-
73+
7474
if (indexed == expected)
7575
break;
7676
}
7777
Assert.Equal(expected, indexed);
7878
}
79-
79+
8080
private async Task AssertIndexSizeAsync(ISearchCommandsAsync ft, string index, int expected)
8181
{
82-
long indexed = -1;
82+
long indexed = -1;
8383
// allow search time to catch up
8484
for (int i = 0; i < 10; i++)
8585
{
8686
indexed = (await ft.InfoAsync(index)).NumDocs;
87-
87+
8888
if (indexed == expected)
8989
break;
9090
}
@@ -568,7 +568,7 @@ public void TestApplyAndFilterAggregations(string endpointId)
568568
AddDocument(db, new Document("data5").Set("name", "def").Set("subj1", 65).Set("subj2", 45));
569569
AddDocument(db, new Document("data6").Set("name", "ghi").Set("subj1", 70).Set("subj2", 70));
570570
AssertIndexSize(ft, index, 6);
571-
571+
572572
AggregationRequest r = new AggregationRequest().Apply("(@subj1+@subj2)/2", "attemptavg")
573573
.GroupBy("@name", Reducers.Avg("@attemptavg").As("avgscore"))
574574
.Filter("@avgscore>=50")
@@ -738,7 +738,7 @@ public void CreateWithFieldNames(string endpointId)
738738
db.HashSet("pupil:4444", [new("first", "Pat"), new("last", "Shu"), new("age", "21")]);
739739
db.HashSet("student:5555", [new("first", "Joen"), new("last", "Ko"), new("age", "20")]);
740740
db.HashSet("teacher:6666", [new("first", "Pat"), new("last", "Rod"), new("age", "20")]);
741-
741+
742742
AssertIndexSize(ft, index, 5); // only pupil and student keys are indexed
743743

744744
SearchResult noFilters = ft.Search(index, new());
@@ -1652,7 +1652,7 @@ public void TestDropIndex(string endpointId)
16521652
Assert.True(ft.DropIndex(index));
16531653

16541654
var ex = Record.Exception(() => { ft.Search(index, new("hello world")); });
1655-
1655+
16561656
Assert.NotNull(ex);
16571657
Assert.IsType<RedisServerException>(ex);
16581658
Assert.Contains("no such index", ex.Message, StringComparison.OrdinalIgnoreCase);
@@ -1716,7 +1716,7 @@ public async Task TestDropIndexAsync(string endpointId)
17161716
Assert.True(await ft.DropIndexAsync(index));
17171717

17181718
var ex = Record.Exception(() => { ft.Search(index, new("hello world")); });
1719-
1719+
17201720
Assert.NotNull(ex);
17211721
Assert.IsType<RedisServerException>(ex);
17221722
Assert.Contains("no such index", ex.Message, StringComparison.OrdinalIgnoreCase);

0 commit comments

Comments
 (0)