From 32ffc5e0318fb7f482c71db41978354e280765e6 Mon Sep 17 00:00:00 2001 From: Francisco Silva Date: Wed, 9 Oct 2024 14:07:38 +0000 Subject: [PATCH] fixing tests --- .../bitacross/core/offchain-worker-executor/src/executor.rs | 5 ++++- .../identity/core/offchain-worker-executor/src/executor.rs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tee-worker/bitacross/core/offchain-worker-executor/src/executor.rs b/tee-worker/bitacross/core/offchain-worker-executor/src/executor.rs index 51f9590e12..9f9f1a84c3 100644 --- a/tee-worker/bitacross/core/offchain-worker-executor/src/executor.rs +++ b/tee-worker/bitacross/core/offchain-worker-executor/src/executor.rs @@ -265,7 +265,9 @@ mod tests { stf_mock::{GetterMock, TrustedCallSignedMock}, }; use itp_top_pool_author::mocks::AuthorApiMock; - use itp_types::{Block as ParentchainBlock, RsaRequest}; + use itp_types::{ + parentchain::Header as ParentchainHeader, Block as ParentchainBlock, RsaRequest, + }; use itp_test::mock::stf_mock::mock_top_indirect_trusted_call_signed; use std::boxed::Box; @@ -287,6 +289,7 @@ mod tests { TestStfInterface, TrustedCallSignedMock, GetterMock, + ParentchainHeader, >; const EVENT_COUNT_KEY: &[u8] = b"event_count"; diff --git a/tee-worker/identity/core/offchain-worker-executor/src/executor.rs b/tee-worker/identity/core/offchain-worker-executor/src/executor.rs index 51f9590e12..9f9f1a84c3 100644 --- a/tee-worker/identity/core/offchain-worker-executor/src/executor.rs +++ b/tee-worker/identity/core/offchain-worker-executor/src/executor.rs @@ -265,7 +265,9 @@ mod tests { stf_mock::{GetterMock, TrustedCallSignedMock}, }; use itp_top_pool_author::mocks::AuthorApiMock; - use itp_types::{Block as ParentchainBlock, RsaRequest}; + use itp_types::{ + parentchain::Header as ParentchainHeader, Block as ParentchainBlock, RsaRequest, + }; use itp_test::mock::stf_mock::mock_top_indirect_trusted_call_signed; use std::boxed::Box; @@ -287,6 +289,7 @@ mod tests { TestStfInterface, TrustedCallSignedMock, GetterMock, + ParentchainHeader, >; const EVENT_COUNT_KEY: &[u8] = b"event_count";