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.
This commit is contained in:
teor 2021-08-12 10:38:42 +10:00 committed by Deirdre Connolly
parent 32e1237df8
commit a176c499ab
1 changed files with 1 additions and 1 deletions

View File

@ -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?;