Skip to content

Commit 7db6a96

Browse files
committed
[eclipse-iceoryx#139] Adjust test to account for specific windows behavior
1 parent 58f7b76 commit 7db6a96

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

iceoryx2-cal/tests/event_tests.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,11 @@ mod event {
622622
drop(sut_listener);
623623

624624
let result = sut_notifier.notify(TriggerId::new(0));
625-
assert_that!(result, is_err);
626-
assert_that!(result.err().unwrap(), eq NotifierNotifyError::Disconnected);
625+
// either present a disconnect error when available or continue sending without counterpart, for
626+
// instance when the event is network socket based
627+
if result.is_err() {
628+
assert_that!(result.err().unwrap(), eq NotifierNotifyError::Disconnected);
629+
}
627630
}
628631

629632
#[instantiate_tests(<iceoryx2_cal::event::unix_datagram_socket::EventImpl>)]

0 commit comments

Comments
 (0)