Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests and compile issues #1152

Merged
merged 6 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions polkadot/node/core/pvf/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,18 @@ pub mod worker;

pub use cpu_time::ProcessTime;

// Used by `decl_worker_main!`.
#[cfg(feature = "test-utils")]
pub use sp_tracing;
/// DO NOT USE - internal for macros only.
#[doc(hidden)]
pub mod __private {
pub mod sp_tracing {
pub fn try_init_simple() {
#[cfg(feature = "test-utils")]
{
let _ = ::sp_tracing::try_init_simple();
}
}
}
ggwpez marked this conversation as resolved.
Show resolved Hide resolved
}

const LOG_TARGET: &str = "parachain::pvf-common";

Expand Down
2 changes: 1 addition & 1 deletion polkadot/node/core/pvf/common/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ macro_rules! decl_worker_main {
}

fn main() {
$crate::sp_tracing::try_init_simple();
$crate::__private::sp_tracing::try_init_simple();
ggwpez marked this conversation as resolved.
Show resolved Hide resolved

let args = std::env::args().collect::<Vec<_>>();
if args.len() == 1 {
Expand Down
2 changes: 1 addition & 1 deletion polkadot/node/subsystem-test-helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ pub fn subsystem_test_harness<M, OverseerFactory, Overseer, TestFactory, Test>(

futures::executor::block_on(async move {
future::join(overseer, test)
.timeout(Duration::from_secs(5))
.timeout(Duration::from_secs(10))
.await
.expect("test timed out instead of completing")
});
Expand Down
Loading