From 1f6ff8c0cc04821d109a428ef4cc9ba48259c0c8 Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Thu, 30 Dec 2021 15:27:31 -0800 Subject: [PATCH] fixed tests --- src/tests/main_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/main_tests.rs b/src/tests/main_tests.rs index 2266115..a506ab3 100644 --- a/src/tests/main_tests.rs +++ b/src/tests/main_tests.rs @@ -11,8 +11,9 @@ fn it_works() { #[test] fn can_make_ctrl_c_handler() { + let (control_c_flag_tx_1, _control_c_called_flag_rx_1) = sync_flag::new_syncflag(false); let (control_c_flag_tx, _control_c_called_flag_rx) = sync_flag::new_syncflag(false); - crate::setup_control_c(control_c_flag_tx); + crate::setup_control_c(control_c_flag_tx, control_c_flag_tx_1); drop(_control_c_called_flag_rx); }