Skip to content

Commit

Permalink
Fix typo in test function (solana-labs#27031)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Aug 9, 2022
1 parent 807c5a7 commit c2455e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/unprocessed_packet_batches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ mod tests {
solana_vote_program::vote_transaction,
};

fn simmple_deserialized_packet() -> DeserializedPacket {
fn simple_deserialized_packet() -> DeserializedPacket {
let tx = system_transaction::transfer(
&Keypair::new(),
&solana_sdk::pubkey::new_rand(),
Expand Down Expand Up @@ -483,7 +483,7 @@ mod tests {

#[test]
fn test_unprocessed_packet_batches_insert_pop_same_packet() {
let packet = simmple_deserialized_packet();
let packet = simple_deserialized_packet();
let mut unprocessed_packet_batches = UnprocessedPacketBatches::with_capacity(2);
unprocessed_packet_batches.push(packet.clone());
unprocessed_packet_batches.push(packet.clone());
Expand Down Expand Up @@ -529,7 +529,7 @@ mod tests {
#[test]
fn test_unprocessed_packet_batches_pop_max_n() {
let num_packets = 10;
let packets_iter = std::iter::repeat_with(simmple_deserialized_packet).take(num_packets);
let packets_iter = std::iter::repeat_with(simple_deserialized_packet).take(num_packets);
let mut unprocessed_packet_batches =
UnprocessedPacketBatches::from_iter(packets_iter.clone(), num_packets);

Expand Down

0 comments on commit c2455e7

Please sign in to comment.