HomePhabricator

[Chronik] Add failover.ts integration test to chronik-client

Description

[Chronik] Add failover.ts integration test to chronik-client

Summary:
We spin up 3 nodes using Python, and then stop them 1 by 1 to test the failover works.

We check to make sure the failover is working by:

Connect to a new node after we force current node to stop.

Assert that the node is indeed stopped.

Mine a block on new node, ensure we still receive subscription updates.

Call blockchain.info() on the node.

Test Plan:
cd modules/chronik-client/test
npx mocha -j1 -r ts-node/register test/integration/failover.ts

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18264

Details

Provenance
hazzarustAuthored on Jun 11 2025, 14:22
hazzarustPushed on Jun 28 2025, 14:39
Reviewer
Restricted Owners Package
Differential Revision
D18264: [Chronik] Add failover.ts integration test to chronik-client
Parents
rABC14b55bc494b6: [e.cash] Add avalanche section
Branches
Unknown
Tags
Unknown