Commit 9dbd9f4
replication: fix test build drift (Heartbeat.members, LeaderNode::new, WalWriter) (#5)
The wolfscale lib-test target failed to compile (5 errors) because test code had
drifted from the current lib API. The library itself built fine, so this was
only caught when running `cargo test`.
- protocol.rs: `Message::Heartbeat` gained a `members: Vec<(String, String)>`
field; add it to the test constructor and ignore it in the match pattern.
- leader.rs: `LeaderNode::new` gained an 8th `executor: Option<Arc<MariaDbExecutor>>`
argument; pass `None` in the test.
- follower.rs: qualify `WalWriter` as `crate::wal::WalWriter` in the test (the
type was never imported into this module).
No production code changed — test-only fixes. `cargo test`: 44 passed.
Co-authored-by: Paul C <paulc@wolf.uk.com>1 parent 4c8036d commit 9dbd9f4
4 files changed
Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
| 714 | + | |
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
| 744 | + | |
744 | 745 | | |
745 | 746 | | |
746 | 747 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
294 | | - | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
0 commit comments