Skip to content

Commit

Permalink
sync channel
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Sep 5, 2023
1 parent f12862e commit c938971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tauri/src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ pub fn assert_ipc_response<T: Serialize + Debug + Send + Sync + 'static>(
request: InvokeRequest,
expected: Result<T, T>,
) {
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| {
Expand Down

0 comments on commit c938971

Please sign in to comment.