Skip to content

Commit c715193

Browse files
committed
Fix index size assertion
1 parent 5edc928 commit c715193

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/NRedisStack.Tests/Search/SearchTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ public void TestCreate(string endpointId)
615615
db.HashSet("pupil:4444", [new("first", "Pat"), new("last", "Shu"), new("age", "21")]);
616616
db.HashSet("student:5555", [new("first", "Joen"), new("last", "Ko"), new("age", "20")]);
617617
db.HashSet("teacher:6666", [new("first", "Pat"), new("last", "Rod"), new("age", "20")]);
618-
AssertIndexSize(ft, index, 5); // only pupil and student keys are indexed
618+
AssertIndexSize(ft, index, 4); // only pupil and student keys are indexed
619619

620620
var noFilters = ft.Search(index, new());
621621
Assert.Equal(4, noFilters.TotalResults);
@@ -647,7 +647,7 @@ public async Task TestCreateAsync(string endpointId)
647647
db.HashSet("pupil:4444", [new("first", "Pat"), new("last", "Shu"), new("age", "21")]);
648648
db.HashSet("student:5555", [new("first", "Joen"), new("last", "Ko"), new("age", "20")]);
649649
db.HashSet("teacher:6666", [new("first", "Pat"), new("last", "Rod"), new("age", "20")]);
650-
await AssertIndexSizeAsync(ft, index, 5); // only pupil and student keys are indexed
650+
await AssertIndexSizeAsync(ft, index, 4); // only pupil and student keys are indexed
651651

652652
var noFilters = ft.Search(index, new());
653653
Assert.Equal(4, noFilters.TotalResults);

0 commit comments

Comments
 (0)