diff --git a/integration-tests/tests/cargo_near_new.rs b/integration-tests/tests/cargo_near_new.rs index b88efd97..794634e8 100644 --- a/integration-tests/tests/cargo_near_new.rs +++ b/integration-tests/tests/cargo_near_new.rs @@ -4,14 +4,13 @@ use camino::Utf8PathBuf; use serde_json::json; mod crate_metadata; mod toolchain_channels; +use cargo_near_integration_tests::setup_tracing; /// This tests logic of `../../cargo-near/src/commands/new/new-project-template/tests/test_basics.rs`, /// on contract, which is docker-built from project, generated by `cargo near new` #[cfg(target_os = "linux")] #[tokio::test] async fn test_docker_build() -> Result<(), Box> { - use cargo_near_integration_tests::setup_tracing; - setup_tracing(); let generated_manifest = run_cargo_near_new()?; @@ -48,10 +47,6 @@ include! {"../../cargo-near/src/commands/new/test_basics_on.rs.in"} /// This runs `cargo test` on project, generated by `cargo near new` #[test] fn test_cargo_test_on_generated_project() -> Result<(), Box> { - use cargo_near_integration_tests::setup_tracing; - - setup_tracing(); - let generated_manifest = run_cargo_near_new()?; toolchain_channels::assert_equal( @@ -108,8 +103,6 @@ fn test_cargo_test_on_generated_project() -> Result<(), Box Result<(), Box> { - use cargo_near_integration_tests::setup_tracing; - setup_tracing(); let generated_manifest = run_cargo_near_new()?;