diff --git a/core/tauri/src/test/mod.rs b/core/tauri/src/test/mod.rs index 30e94c3d170..ff163eb2a3f 100644 --- a/core/tauri/src/test/mod.rs +++ b/core/tauri/src/test/mod.rs @@ -225,7 +225,7 @@ pub fn assert_ipc_response( request: InvokeRequest, expected: Result, ) { - let (tx, rx) = std::sync::mpsc::channel(); + let (tx, rx) = std::sync::mpsc::sync_channel(1); window.clone().on_message( request, Box::new(move |_window, _cmd, response, _callback, _error| {