From 18347231b1e91c2d18700cdc71e003890f13b012 Mon Sep 17 00:00:00 2001 From: Jimmy Chen Date: Tue, 30 May 2023 23:31:09 +1000 Subject: [PATCH] Fix failing tests --- beacon_node/beacon_chain/src/test_utils.rs | 12 ------------ beacon_node/http_api/tests/status_tests.rs | 3 ++- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/beacon_node/beacon_chain/src/test_utils.rs b/beacon_node/beacon_chain/src/test_utils.rs index ed3110e9b9..1d28f1c0a1 100644 --- a/beacon_node/beacon_chain/src/test_utils.rs +++ b/beacon_node/beacon_chain/src/test_utils.rs @@ -2130,18 +2130,6 @@ where self.chain.slot_clock.set_current_time(time); } - /// Deprecated: Use make_block() instead - /// - /// Returns a newly created block, signed by the proposer for the given slot. - pub async fn build_block( - &self, - state: BeaconState, - slot: Slot, - _block_strategy: BlockStrategy, - ) -> (BlockContentsTuple>, BeaconState) { - self.make_block(state, slot).await - } - /// Uses `Self::extend_chain` to build the chain out to the `target_slot`. pub async fn extend_to_slot(&self, target_slot: Slot) -> Hash256 { if self.chain.slot().unwrap() == self.chain.canonical_head.cached_head().head_slot() { diff --git a/beacon_node/http_api/tests/status_tests.rs b/beacon_node/http_api/tests/status_tests.rs index ce725b75a9..1e2c22cd24 100644 --- a/beacon_node/http_api/tests/status_tests.rs +++ b/beacon_node/http_api/tests/status_tests.rs @@ -99,9 +99,10 @@ async fn el_error_on_new_payload() { // Make a block. let pre_state = harness.get_current_state(); - let (block, _) = harness + let (block_contents, _) = harness .make_block(pre_state, Slot::new(num_blocks + 1)) .await; + let block = block_contents.0; let block_hash = block .message() .body()