Skip to content

Commit 96cf7d5

Browse files
committed
fix: fix broken unit test
1 parent ce9a161 commit 96cf7d5

File tree

1 file changed

+6
-1
lines changed
  • stackslib/src/net/stackerdb/tests

1 file changed

+6
-1
lines changed

stackslib/src/net/stackerdb/tests/sync.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ fn load_stackerdb(peer: &TestPeer, idx: usize) -> Vec<(SlotMetadata, Vec<u8>)> {
183183

184184
fn check_sync_results(network_sync: &NetworkResult) {
185185
for res in network_sync.stacker_db_sync_results.iter() {
186-
assert!(res.num_connections >= res.num_attempted_connections);
186+
assert!(
187+
res.num_connections <= res.num_attempted_connections,
188+
"{} < {}",
189+
res.num_connections,
190+
res.num_attempted_connections
191+
);
187192
}
188193
}
189194

0 commit comments

Comments
 (0)