Skip to content

Commit 8a4e687

Browse files
committed
[#139] Watchdog adjustments due to test runtime
1 parent cafee5b commit 8a4e687

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

iceoryx2-cal/tests/communication_channel_trait_tests.rs

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mod communication_channel {
1717
use iceoryx2_bb_posix::unique_system_id::UniqueSystemId;
1818
use iceoryx2_bb_system_types::file_name::FileName;
1919
use iceoryx2_bb_testing::assert_that;
20+
use iceoryx2_bb_testing::watchdog::Watchdog;
2021
use iceoryx2_cal::communication_channel;
2122
use iceoryx2_cal::communication_channel::*;
2223
use iceoryx2_cal::named_concept::*;
@@ -366,6 +367,8 @@ mod communication_channel {
366367

367368
#[test]
368369
fn custom_suffix_keeps_channels_separated<Sut: CommunicationChannel<usize>>() {
370+
let _watch_dog = Watchdog::new();
371+
369372
let config_1 = <Sut as NamedConceptMgmt>::Configuration::default()
370373
.suffix(unsafe { FileName::new_unchecked(b".s1") });
371374
let config_2 = <Sut as NamedConceptMgmt>::Configuration::default()

iceoryx2/tests/service_event_tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ mod service_event {
433433

434434
#[test]
435435
fn concurrent_reconnecting_notifier_can_trigger_waiting_listener<Sut: Service>() {
436-
let _watch_dog = Watchdog::new();
436+
let _watch_dog = Watchdog::new_with_timeout(Duration::from_secs(120));
437437

438438
let number_of_listener_threads = (SystemInfo::NumberOfCpuCores.value() * 2).clamp(2, 16);
439439
let number_of_notifier_threads = (SystemInfo::NumberOfCpuCores.value() * 2).clamp(2, 16);
@@ -490,7 +490,7 @@ mod service_event {
490490

491491
#[test]
492492
fn concurrent_reconnecting_listener_can_wait_for_triggering_notifiers<Sut: Service>() {
493-
let _watch_dog = Watchdog::new();
493+
let _watch_dog = Watchdog::new_with_timeout(Duration::from_secs(120));
494494

495495
let number_of_listener_threads = (SystemInfo::NumberOfCpuCores.value() * 2).clamp(2, 16);
496496
let number_of_notifier_threads = (SystemInfo::NumberOfCpuCores.value() * 2).clamp(2, 16);

0 commit comments

Comments
 (0)