Skip to content

test(postgres): log the history event before the first webhook endpoint exists - #646

Open
Bccorb wants to merge 1 commit into
mainfrom
fix/postgres-webhook-dispatch-test
Open

Bccorb wants to merge 1 commit into
mainfrom
fix/postgres-webhook-dispatch-test

Conversation

@Bccorb

@Bccorb Bccorb commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

The Postgres suite has failed on main since #631 on one test, tests/postgres/webhooks.spec.ts "starts after the newest event, then delivers each new one once, signed".

#631 made creating the first webhook endpoint set the dispatch cursor at the newest event, so an event logged after the endpoint exists is delivered, which is the intended behavior. The test logged its "history" event after creating the endpoint and expected it to be skipped. It now logs that event before the endpoint exists, which is what "history is not replayed" means, and the rest of the test is unchanged.

Test only, no changeset.

  • Postgres suite (TEST_DB=postgres, Postgres 18): 229 files, 3983 tests pass
  • Mock suite: 207 files, 3672 tests pass
  • typecheck, lint and prettier pass

…nt exists

Since #631 the first endpoint sets the dispatch cursor when it is created,
so an event logged after that is delivered. The test still logged its
history event after creating the endpoint and expected it to be skipped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant