From 17f05db5099867365f5bda5bee7c491b95093bf2 Mon Sep 17 00:00:00 2001 From: thesyncim Date: Mon, 23 Nov 2026 19:45:48 +0000 Subject: [PATCH] test(store): a page's cursor never passes the customer's own last change A page that is not full moves its cursor to the customer's own last change up to the mark, not to another customer's. --- acceleration/internal/store/datamove_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/acceleration/internal/store/datamove_test.go b/acceleration/internal/store/datamove_test.go index 4a7aeffca5..7c62f3ed7e 100644 --- a/acceleration/internal/store/datamove_test.go +++ b/acceleration/internal/store/datamove_test.go @@ -438,6 +438,20 @@ func (s *DataMoveSuite) TestChangesStopAtTheCustomerAskingForThem() { s.Empty(changes) } +func (s *DataMoveSuite) TestAPageCursorNeverPassesTheCustomersOwnLastChange() { + s.capture("acme") + s.capture("other") + s.seedAgentConfig(s.source, "acme", "greeter") + _, ownCursor, err := s.source.Changes(s.ctx, "acme", 0, 100) + s.Require().NoError(err) + s.seedAgentConfig(s.source, "other", "not-yours") + + _, cursor, err := s.source.Changes(s.ctx, "acme", 0, 100) + + s.Require().NoError(err) + s.Equal(ownCursor, cursor) +} + func (s *DataMoveSuite) TestADeleteIsReplayedToo() { s.capture("acme") id := s.seedAgentConfig(s.source, "acme", "doomed")