Skip to content

Commit

Permalink
fix: Update failing rust tests (#2961)
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed May 21, 2021
1 parent 19a1bd6 commit ed17fee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base_layer/core/src/chain_storage/accumulated_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,22 +451,22 @@ impl ChainBlock {
#[cfg(test)]
mod test {
use super::*;
use crate::blocks::genesis_block::get_ridcully_genesis_block;
use crate::blocks::genesis_block::get_weatherwax_genesis_block;

mod chain_block {
use super::*;

#[test]
fn it_converts_to_a_chain_header() {
let genesis = get_ridcully_genesis_block();
let genesis = get_weatherwax_genesis_block();
let header = genesis.to_chain_header();
assert_eq!(header.header(), genesis.header());
assert_eq!(header.accumulated_data(), genesis.accumulated_data());
}

#[test]
fn it_provides_guarantees_about_data_integrity() {
let mut genesis = get_ridcully_genesis_block();
let mut genesis = get_weatherwax_genesis_block();
// Mess with the header, only possible using the non-public fields
genesis.block = Arc::new({
let mut b = (*genesis.block).clone();
Expand Down

0 comments on commit ed17fee

Please sign in to comment.