HomePhabricator

[chronik] Fix websocket subscription in tests

Description

[chronik] Fix websocket subscription in tests

Summary: The tests expect the websocket subscription to take effect immediately, however this doesn't hold as the subscription is send via the network and can take some time to be received/processed. This diff uses the log to make sure the subscription happened before returning.

Test Plan:

./test/functional/test_runner.py chronik_*

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: tobias_ruck, PiRK

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

Details

Provenance
FabienAuthored on Feb 15 2024, 21:04
FabienPushed on Feb 16 2024, 10:27
Reviewer
Restricted Project
Differential Revision
D15461: [chronik] Fix websocket subscription in tests
Parents
rABC0fdf6b22d4f8: [Chronik] Improve logs in ws.rs
Branches
Unknown
Tags
Unknown