Skip to content

Commit 80012db

Browse files
style(clippy): fix test file lints (zombie_processes, empty_line_after_doc_comment, useless_format, unused_variable) (#674)
1 parent 2b02d0d commit 80012db

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

tests/compiler_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This is a test agent for integration testing.
4343
fs::create_dir_all(temp_dir.join(".github/agents")).expect("Failed to create .github/agents");
4444

4545
// Run the compilation
46-
let output_yaml = temp_dir.join("test-agent.yml");
46+
let _output_yaml = temp_dir.join("test-agent.yml");
4747

4848
// Note: We can't directly call compile_pipeline from here since it's not a library function
4949
// This test verifies the output structure when compile runs
@@ -3730,7 +3730,7 @@ fn assert_marker_step_present(
37303730
"{fixture_name}: marker line missing schema=1: {line}"
37313731
);
37323732
assert!(
3733-
line.contains(&format!("\"source\":\"")) && line.contains(expected_source_suffix),
3733+
line.contains("\"source\":\"") && line.contains(expected_source_suffix),
37343734
"{fixture_name}: marker line does not include source suffix {expected_source_suffix}: {line}"
37353735
);
37363736
// The runtime echo on the next line should mirror the same data

tests/mcp_http_tests.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ use std::io::BufRead;
22
use std::process::{Child, Command, Stdio};
33
use std::time::Duration;
44

5-
/// Integration tests for the SafeOutputs HTTP server (`mcp-http` subcommand).
6-
///
7-
/// These tests validate the HTTP transport layer that MCPG uses to reach
8-
/// SafeOutputs. They do NOT require Docker or the MCPG gateway — they test
9-
/// the ado-aw HTTP server directly.
5+
// Integration tests for the SafeOutputs HTTP server (`mcp-http` subcommand).
6+
//
7+
// These tests validate the HTTP transport layer that MCPG uses to reach
8+
// SafeOutputs. They do NOT require Docker or the MCPG gateway — they test
9+
// the ado-aw HTTP server directly.
1010

1111
/// Guard that kills the child process on drop (even on panic).
1212
struct ServerGuard {
@@ -94,6 +94,7 @@ fn start_server() -> ServerGuard {
9494
}
9595
// Kill and panic if not ready
9696
child.kill().ok();
97+
child.wait().ok();
9798
panic!("SafeOutputs HTTP server did not become ready within 5 s");
9899
}
99100

0 commit comments

Comments
 (0)