mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-27 15:30:45 +01:00
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:
1 parent
67240f538d
commit
bfb6e40fb4
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user