Skip to content

Commit

Permalink
delete obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Jun 13, 2024
1 parent bd0655a commit 1aae56c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions cluster-endpoints/src/rpc_polling/poll_blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,20 +326,3 @@ fn map_block_info(produced_block: &ProducedBlock) -> BlockInfo {
block_time: produced_block.block_time,
}
}

#[cfg(test)]
mod tests {
#[inline]
fn calc_prioritization_fees(units: u32, additional_fee: u32) -> u64 {
(units as u64 * 1000) / additional_fee as u64
}

#[test]
fn test_calc_prioritization_fees() {
let units: u32 = 100;
let additional_fee: u32 = 10;
let prioritization_fees: u64 = calc_prioritization_fees(units, additional_fee);

assert_eq!(1000, prioritization_fees);
}
}

0 comments on commit 1aae56c

Please sign in to comment.