Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 97e8522

Browse files
committed
chore: merge conflicts
1 parent 2e9d0a9 commit 97e8522

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

crates/topos/tests/config.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ mod serial_integration {
187187
// Check if config file params are according to env params
188188
let config_contents = std::fs::read_to_string(&config_path).unwrap();
189189
assert!(config_contents.contains("name = \"TEST_NODE_ENV\""));
190-
assert!(config_contents.contains("role = \"fullnode\""));
190+
assert!(config_contents.contains("role = \"full-node\""));
191191
assert!(config_contents.contains("subnet = \"topos-env\""));
192192

193193
Ok(())
@@ -422,12 +422,13 @@ mod serial_integration {
422422
let pid = cmd.id().unwrap();
423423
let _ = tokio::time::sleep(std::time::Duration::from_secs(10)).await;
424424

425-
let s = System::new_all();
426-
if let Some(process) = s.process(Pid::from_u32(pid)) {
427-
if process.kill_with(Signal::Term).is_none() {
428-
eprintln!("This signal isn't supported on this platform");
429-
}
430-
}
425+
println!("STDOUT: {}", stdout);
426+
let reg = Regex::new(r#"Local node is listening on "\/ip4\/.*\/tcp\/9091\/p2p\/"#).unwrap();
427+
assert!(
428+
reg.is_match(&stdout),
429+
"Expected node 'Local node is listening on…' but instead got:\n----\n{}\n----\n",
430+
stdout
431+
);
431432

432433
if let Ok(output) = cmd.wait_with_output().await {
433434
assert!(output.status.success());

0 commit comments

Comments
 (0)