Skip to content

Commit ce7c011

Browse files
committed
Remove --tmp from spawned test node
`--dev` implies it.
1 parent f907df9 commit ce7c011

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

core/tests/create_snapshot.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ async fn create_snapshot_works() {
4242
match common::start_node_inline(vec![
4343
"--no-hardware-benchmarks",
4444
"--dev",
45+
"--tmp",
4546
format!("--rpc-port={}", port).as_str(),
47+
"--no-telemetry",
48+
"--no-prometheus",
49+
"--rpc-max-response-size=1000", // Allow large RPC responses for snapshot creation
4650
]) {
4751
Ok(_) => {}
4852
Err(e) => {
@@ -51,7 +55,7 @@ async fn create_snapshot_works() {
5155
}
5256
});
5357
// Wait some time to ensure the node is warmed up.
54-
std::thread::sleep(Duration::from_secs(90));
58+
std::thread::sleep(Duration::from_secs(180));
5559

5660
// Run the command with tokio
5761
let temp_dir = tempfile::Builder::new()

core/tests/execute_block.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ async fn execute_block_works() {
3333
match common::start_node_inline(vec![
3434
"--no-hardware-benchmarks",
3535
"--dev",
36+
"--tmp",
3637
format!("--rpc-port={}", port).as_str(),
38+
"--no-telemetry",
39+
"--no-prometheus",
40+
"--rpc-max-response-size=1000", // Allow large RPC responses
3741
]) {
3842
Ok(_) => {}
3943
Err(e) => {
@@ -42,7 +46,7 @@ async fn execute_block_works() {
4246
}
4347
});
4448
// Wait some time to ensure the node is warmed up.
45-
std::thread::sleep(Duration::from_secs(90));
49+
std::thread::sleep(Duration::from_secs(180));
4650

4751
// Test passing --at
4852
common::run_with_timeout(Duration::from_secs(60), async move {

0 commit comments

Comments
 (0)