Skip to content
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();
}
}
}
}

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();

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