Skip to content

Commit 8d5a447

Browse files
committed
fix: port randomization.
1 parent 377da7f commit 8d5a447

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

util/movement-aptos/movement-aptos-core/src/movement_aptos.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,14 @@ where
106106

107107
let command = Command::line(
108108
"aptos",
109-
vec!["node", "run-localnet", "--config-path", &config_path.to_string_lossy()],
109+
vec![
110+
"node",
111+
"run-localnet",
112+
"--test-dir",
113+
&self.workspace.to_string_lossy(),
114+
"--config-path",
115+
&config_path.to_string_lossy(),
116+
],
110117
Some(&self.workspace),
111118
false,
112119
vec![],
@@ -202,14 +209,14 @@ mod tests {
202209
tokio::fs::create_dir_all(db_dir.clone()).await?;
203210
}
204211

205-
let mut rng = thread_rng();
212+
let rng = thread_rng();
206213
let mut node_config = create_single_node_test_config(
207214
&None,
208215
&None,
209216
working_dir.as_path(),
210-
false,
211217
true,
212218
false,
219+
false,
213220
&aptos_cached_packages::head_release_bundle().clone(),
214221
rng,
215222
)?;

0 commit comments

Comments
 (0)