diff --git a/crates/tap-agent/src/bin/mock_tap_aggregator_server_runner.rs b/crates/tap-agent/src/bin/mock_tap_aggregator_server_runner.rs index a2ad13e0..549d00f2 100644 --- a/crates/tap-agent/src/bin/mock_tap_aggregator_server_runner.rs +++ b/crates/tap-agent/src/bin/mock_tap_aggregator_server_runner.rs @@ -54,9 +54,10 @@ pub async fn mock_tap_aggregator_server() -> Result, Box Result<(), Box> { // Start the mock server + let shutdown_tx = mock_tap_aggregator_server().await?; - println!("Mock server running. Press Ctrl+C to stop."); + println!("Mock server running. Press Ctrl+C to stop."); // Wait until the user decides to terminate the process tokio::signal::ctrl_c().await.expect("Failed to listen for Ctrl+C");