🐛 Fix sync from zero

This commit is contained in:
2026-08-20 17:35:43 +02:00
parent babc9a8096
commit 29284a024d
2 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -76,8 +76,8 @@ func TestSyncPruneStaleClient(t *testing.T) {
t.Fatalf("Prune: %v", err)
}
// A stale client (since=0) should get ErrSyncStale.
_, _, err := s.Pull(ctx, 0)
// A client with an existing sync position behind the marker is stale.
_, _, err := s.Pull(ctx, 1)
if !errors.Is(err, store.ErrSyncStale) {
t.Fatalf("expected ErrSyncStale, got %v", err)
}