From aa896decc1245efefd340207d89400e93a878809 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Thu, 12 Jan 2023 19:13:01 +1100 Subject: [PATCH] Fix some beacon_chain tests --- beacon_node/beacon_chain/tests/capella.rs | 9 +++------ beacon_node/beacon_chain/tests/merge.rs | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/beacon_node/beacon_chain/tests/capella.rs b/beacon_node/beacon_chain/tests/capella.rs index 1e39d075d..e910e8134 100644 --- a/beacon_node/beacon_chain/tests/capella.rs +++ b/beacon_node/beacon_chain/tests/capella.rs @@ -16,12 +16,9 @@ fn verify_execution_payload_chain(chain: &[FullPayload]) { // Check against previous `ExecutionPayload`. if let Some(prev_ep) = prev_ep { - assert_eq!(prev_ep.block_hash(), ep.execution_payload().parent_hash()); - assert_eq!( - prev_ep.execution_payload().block_number() + 1, - ep.execution_payload().block_number() - ); - assert!(ep.execution_payload().timestamp() > prev_ep.execution_payload().timestamp()); + assert_eq!(prev_ep.block_hash(), ep.parent_hash()); + assert_eq!(prev_ep.block_number() + 1, ep.block_number()); + assert!(ep.timestamp() > prev_ep.timestamp()); } prev_ep = Some(ep.clone()); } diff --git a/beacon_node/beacon_chain/tests/merge.rs b/beacon_node/beacon_chain/tests/merge.rs index cd6e0e2ba..1e0112a49 100644 --- a/beacon_node/beacon_chain/tests/merge.rs +++ b/beacon_node/beacon_chain/tests/merge.rs @@ -17,12 +17,9 @@ fn verify_execution_payload_chain(chain: &[FullPayload]) { // Check against previous `ExecutionPayload`. if let Some(prev_ep) = prev_ep { - assert_eq!(prev_ep.block_hash(), ep.execution_payload().parent_hash()); - assert_eq!( - prev_ep.execution_payload().block_number() + 1, - ep.execution_payload().block_number() - ); - assert!(ep.execution_payload().timestamp() > prev_ep.execution_payload().timestamp()); + assert_eq!(prev_ep.block_hash(), ep.parent_hash()); + assert_eq!(prev_ep.block_number() + 1, ep.block_number()); + assert!(ep.timestamp() > prev_ep.timestamp()); } prev_ep = Some(ep.clone()); }