Lets us retrieve the ChronikInfo struct, which we can then extract the version from. The assert_eq!() needs a regex, as when the remote is updated, it will return a different String (with the same formatting which we can use for pattern matching).
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Owners Package (Owns No Changed Paths) Restricted Project - Commits
- rABCf7d1497b7029: [Chronik] Add chronik_info method into lib.rs
ninja-check-functional && cargo test in bitcoin-abc/modules/bitcoinsuite-chronik-client
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- chronik_info
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Event Timeline
modules/bitcoinsuite-chronik-client/tests/test_chronik_client.rs | ||
---|---|---|
334 ↗ | (On Diff #52193) | Can you minimally check the output as well ? |
modules/bitcoinsuite-chronik-client/tests/test_chronik_client.rs | ||
---|---|---|
334 ↗ | (On Diff #52194) | This doesn't work. You're testing against a specific version, so as soon as the remote is updated this will start to fail, despite your endpoint being correct. |