test: assert the resumed segment token in ListVectors paging (#12108)

test: assert the resumed segment token

The second listSegmentVectors result was never checked (staticcheck
SA4006); assert it resumes scanning at row 19 after matches 10..18.
This commit is contained in:
Chris Lu authored and GitHub committed 2026-10-26 18:08:48 -07:00
1 parent 67240f538d
commit bfb6e40fb4
1 file changed
+3
+3
View File
@@ -115,6 +115,9 @@ func TestListSegmentVectorsStopsInsideEnginePage(t *testing.T) {
if len(out) != 5 || out[0].Key != "k10" {
t.Fatalf("resumed at %v rows, first %v", len(out), out[0])
}
if next != "19" {
t.Fatalf("resumed token %q, want 19", next)
}
}
// The last row of the index filling the page exactly must not emit a token.