Skip to content

Commit

Permalink
test(pindexer): add integration tests to validate db contents
Browse files Browse the repository at this point in the history
Adds some feature-gated integration tests, not yet hooked up to CI,
to sanity check that the ABCI events pipeline is working:

  pd -> cometbft -> postgres -> pindexer

The integration tests talk to local postgres databases and make
assertions about their contents. There's also a small change to the
process-compose orchestration, instructing pindexer to wait for the
fullnode services to come up, lest it error out early due to an empty
database. The error I observed on an empty db was:

  Error: error occurred while decoding column 0: unexpected null;
  try decoding as an `Option`
  Caused by:
    unexpected null; try decoding as an `Option`

Which is distinct from the error reported in #4999. By waiting
a bit longer we can ensure a clean start even on a fresh devnet.

Will follow up with subsequent PRs to make sure these tests run in CI.
  • Loading branch information
conorsch committed Jan 29, 2025
1 parent 58b4a2c commit b9284fd
Show file tree
Hide file tree
Showing 4 changed files with 289 additions and 67 deletions.
Loading

0 comments on commit b9284fd

Please sign in to comment.