From 615402abcf34e3b6c03fafd55a082014e158a87d Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Mon, 6 Feb 2023 18:04:24 +0100 Subject: [PATCH] fixup! Fix conflicts rebasing eip4844 --- beacon_node/http_api/tests/common.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/beacon_node/http_api/tests/common.rs b/beacon_node/http_api/tests/common.rs index f7d30c9e0..fba1671c6 100644 --- a/beacon_node/http_api/tests/common.rs +++ b/beacon_node/http_api/tests/common.rs @@ -1,5 +1,8 @@ use beacon_chain::{ - test_utils::{BeaconChainHarness, BoxedMutator, EphemeralTestingSlotClockHarnessType}, + test_utils::{ + BeaconChainHarness, BoxedMutator, Builder, + EphemeralTestingSlotClockHarnessType as HarnessType, + }, BeaconChain, BeaconChainTypes, }; use directory::DEFAULT_ROOT_DIR; @@ -38,7 +41,7 @@ pub const EXTERNAL_ADDR: &str = "/ip4/0.0.0.0/tcp/9000"; /// HTTP API tester that allows interaction with the underlying beacon chain harness. pub struct InteractiveTester { - pub harness: BeaconChainHarness>, + pub harness: BeaconChainHarness>, pub client: BeaconNodeHttpClient, pub network_rx: NetworkReceivers, _server_shutdown: oneshot::Sender<()>, @@ -56,9 +59,8 @@ pub struct ApiServer> { pub external_peer_id: PeerId, } -type Initializer = Box< - dyn FnOnce(HarnessBuilder>) -> HarnessBuilder>, ->; +type HarnessBuilder = Builder, TestingSlotClock>; +type Initializer = Box) -> HarnessBuilder>; type Mutator = BoxedMutator, MemoryStore, TestingSlotClock>; impl InteractiveTester {