We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58f7b76 commit 7db6a96Copy full SHA for 7db6a96
iceoryx2-cal/tests/event_tests.rs
@@ -622,8 +622,11 @@ mod event {
622
drop(sut_listener);
623
624
let result = sut_notifier.notify(TriggerId::new(0));
625
- assert_that!(result, is_err);
626
- assert_that!(result.err().unwrap(), eq NotifierNotifyError::Disconnected);
+ // either present a disconnect error when available or continue sending without counterpart, for
+ // instance when the event is network socket based
627
+ if result.is_err() {
628
+ assert_that!(result.err().unwrap(), eq NotifierNotifyError::Disconnected);
629
+ }
630
}
631
632
#[instantiate_tests(<iceoryx2_cal::event::unix_datagram_socket::EventImpl>)]
0 commit comments