Skip to content

replication: fix test build drift so cargo test compiles#5

Merged
wolfsoftwaresystemsltd merged 1 commit into
mainfrom
fix-wolfscale-test-build
Jun 24, 2026
Merged

replication: fix test build drift so cargo test compiles#5
wolfsoftwaresystemsltd merged 1 commit into
mainfrom
fix-wolfscale-test-build

Conversation

@wolfsoftwaresystemsltd

Copy link
Copy Markdown
Owner

Summary

The wolfscale lib-test target failed to compile (5 errors), so cargo test was broken at the repo root. The library built fine, which is why it slipped through — the breakage was test code that had drifted from the current lib API.

Fixes (test-only)

  • protocol.rsMessage::Heartbeat gained a members: Vec<(String, String)> field; added it to the test constructor and ignore it (..) in the match.
  • leader.rsLeaderNode::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 paths changed.

Testing

cargo test44 passed, 0 failed.

Built by CodeWolf & Wolf Software Systems Ltd

…, WalWriter)

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: CodeWolf <paul@wolf.uk.com>
Co-Authored-By: Wolf Software Systems Ltd <paul@wolf.uk.com>
@wolfsoftwaresystemsltd wolfsoftwaresystemsltd merged commit 9dbd9f4 into main Jun 24, 2026
1 check passed
@wolfsoftwaresystemsltd wolfsoftwaresystemsltd deleted the fix-wolfscale-test-build branch June 24, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant