Skip to content

Commit

Permalink
test: remove some useless cases in the test (#1485)
Browse files Browse the repository at this point in the history
remove unused ub test
  • Loading branch information
yihau authored May 28, 2024
1 parent 97bdd9b commit 12b6665
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions accounts-db/src/append_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1409,13 +1409,6 @@ pub mod tests {
// Depending on use, *executable_bool can be truthy or falsy due to direct memory manipulation
// assert_eq! thinks *executable_bool is equal to false but the if condition thinks it's not, contradictorily.
assert!(!*executable_bool);
#[cfg(not(target_arch = "aarch64"))]
{
const FALSE: bool = false; // keep clippy happy
if *executable_bool == FALSE {
panic!("This didn't occur if this test passed.");
}
}
assert_eq!(*account.ref_executable_byte(), crafted_executable);
}

Expand Down

0 comments on commit 12b6665

Please sign in to comment.