Skip to content

Commit

Permalink
Fix ci...
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed May 4, 2023
1 parent a4be9e3 commit 6a1044a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/serve_repair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@ mod tests {
let ping = ping_pong::Ping::<[u8; 32]>::new_rand(&mut rng, &keypair).unwrap();
let pong = Pong::new(&ping, &keypair).unwrap();
let request = RepairProtocol::Pong(pong);
let mut pkt = Packet::from_data(None, &request).unwrap();
let mut pkt = Packet::from_data(None, request).unwrap();
let mut batch = PacketBatch::new(vec![pkt.clone()]);
let mut stats = ServeRepairStats::default();
let num_well_formed = discard_malformed_repair_requests(&mut batch, &mut stats);
Expand All @@ -1466,7 +1466,7 @@ mod tests {
slot: 123,
shred_index: 456,
};
let mut pkt = Packet::from_data(None, &request).unwrap();
let mut pkt = Packet::from_data(None, request).unwrap();
let mut batch = PacketBatch::new(vec![pkt.clone()]);
let mut stats = ServeRepairStats::default();
let num_well_formed = discard_malformed_repair_requests(&mut batch, &mut stats);
Expand All @@ -1482,7 +1482,7 @@ mod tests {
header: repair_request_header_for_tests(),
slot: 123,
};
let mut pkt = Packet::from_data(None, &request).unwrap();
let mut pkt = Packet::from_data(None, request).unwrap();
let mut batch = PacketBatch::new(vec![pkt.clone()]);
let mut stats = ServeRepairStats::default();
let num_well_formed = discard_malformed_repair_requests(&mut batch, &mut stats);
Expand All @@ -1495,7 +1495,7 @@ mod tests {
assert_eq!(stats.err_malformed, 1);

let request = RepairProtocol::LegacyOrphan(LegacyContactInfo::default(), 123);
let mut pkt = Packet::from_data(None, &request).unwrap();
let mut pkt = Packet::from_data(None, request).unwrap();
let mut batch = PacketBatch::new(vec![pkt.clone()]);
let mut stats = ServeRepairStats::default();
let num_well_formed = discard_malformed_repair_requests(&mut batch, &mut stats);
Expand Down

0 comments on commit 6a1044a

Please sign in to comment.