diff --git a/Cargo.lock b/Cargo.lock index e3362544d0b99b..982694d8cdd7ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11590,6 +11590,7 @@ dependencies = [ "sui-protocol-config", "sui-replay", "sui-sdk", + "sui-simulator", "sui-source-validation", "sui-swarm", "sui-swarm-config", diff --git a/crates/sui/Cargo.toml b/crates/sui/Cargo.toml index 77d9f6de21af80..ab2695ea47be3d 100644 --- a/crates/sui/Cargo.toml +++ b/crates/sui/Cargo.toml @@ -91,6 +91,7 @@ assert_cmd.workspace = true test-cluster.workspace = true sui-macros.workspace = true +sui-simulator.workspace = true sui-test-transaction-builder.workspace = true serde_json.workspace = true diff --git a/crates/sui/tests/ptb_files_tests.rs b/crates/sui/tests/ptb_files_tests.rs index acf106e6baf57f..a40e4d55bf9003 100644 --- a/crates/sui/tests/ptb_files_tests.rs +++ b/crates/sui/tests/ptb_files_tests.rs @@ -12,6 +12,8 @@ use test_cluster::TestClusterBuilder; const TEST_DIR: &str = "tests"; +// #[cfg_attr(msim, msim::main)] +#[cfg(not(msim))] #[tokio::main] async fn test_ptb_files(path: &Path) -> Result<(), Box> { let _ = miette::set_hook(Box::new(|_| { @@ -127,4 +129,6 @@ fn stable_call_arg_display(ca: &CallArg) -> String { } } +#[cfg(not(msim))] +#[tokio::main] datatest_stable::harness!(test_ptb_files, TEST_DIR, r".*\.ptb$",);