From bfb6e40fb4a948f8763095db248551072dfc842c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 26 Oct 2026 18:08:48 -0700 Subject: [PATCH] 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. --- weed/s3api/s3vectors/handlers_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/s3api/s3vectors/handlers_test.go b/weed/s3api/s3vectors/handlers_test.go index 648ec9c591..32563acfb7 100644 --- a/weed/s3api/s3vectors/handlers_test.go +++ b/weed/s3api/s3vectors/handlers_test.go @@ -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.