Add a test for indexer checkpoint resume after a restart

Aperta
#21 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@pascalmary ci sta già lavorando.

Dal 8/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Summary

The indexer persists its checkpoint specifically so a restart resumes
instead of losing progress, but there's no test simulating a restart and
confirming it actually picks up where it left off rather than starting
over.

Acceptance criteria

  • Add a test that saves a checkpoint, creates a fresh worker instance, and confirms the next poll starts from the saved ledger, not from "now."

Getting started

Fork this repository, clone your fork, and add this repo as upstream:

git clone https://github.com/<your-username>/streamgive-backend.git
cd streamgive-backend
git remote add upstream https://github.com/StreamGive/streamgive-backend.git

Create a branch for this issue:

git checkout -b test/indexer-checkpoint-resume

Suggested commit message:

test(indexer): confirm checkpoint resume after a restart

Run npm run lint, npm run typecheck, and npm test before pushing, then
open a pull request from your fork against main and link this issue. See
the contributing guide for the full contribution guide.

Lingua principale
TypeScript
Stelle
6
Fork
67
Merge medio
9h 2m
PR unite (30g)
29

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di StreamGive/streamgive-backend

Tutte le issue di StreamGive/streamgive-backend

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.