Skip to content

Commit

Permalink
Use ClientTestHarnessBuilder in PeerVersions
Browse files Browse the repository at this point in the history
Use the builder to set the peer version, so that the `version` parameter
can be removed from the constructor later.
  • Loading branch information
jvff committed Dec 18, 2021
1 parent edf6b85 commit 68764f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zebra-network/src/peer_set/set/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ impl PeerVersions {
let mut harnesses = Vec::with_capacity(self.peer_versions.len());

for peer_version in &self.peer_versions {
let (client, harness) = ClientTestHarness::build(*peer_version).finish();
let (client, harness) = ClientTestHarness::build()
.with_version(*peer_version)
.finish();

clients.push(client.into());
harnesses.push(harness);
Expand Down

0 comments on commit 68764f3

Please sign in to comment.