From a176c499ab9062cd88e003f4d193903f0f68e8d0 Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 12 Aug 2021 10:38:42 +1000 Subject: [PATCH] Make zebra-state compile successfully by itself The zebra-state integration test compiled successfully during workspace builds. But it couldn't find the `init_test` function when the crate was built by itself. This happens because the function is only active for `test` and `proptest-impl` builds. This commit removes the dependency on that function. --- zebra-state/tests/basic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-state/tests/basic.rs b/zebra-state/tests/basic.rs index 1462b8dcf..a32ea43f2 100644 --- a/zebra-state/tests/basic.rs +++ b/zebra-state/tests/basic.rs @@ -75,7 +75,7 @@ async fn check_transcripts(network: Network) -> Result<(), Report> { Network::Mainnet => mainnet_transcript, Network::Testnet => testnet_transcript, } { - let service = zebra_state::init_test(network); + let (service, _) = zebra_state::init(Config::ephemeral(), network); let transcript = Transcript::from(transcript_data.iter().cloned()); /// SPANDOC: check the on disk service against the transcript transcript.check(service).await?;