diff --git a/iceoryx2-cal/tests/dynamic_storage_posix_shared_memory_tests.rs b/iceoryx2-cal/tests/dynamic_storage_posix_shared_memory_tests.rs index 4b3772a90..aa2d573b7 100644 --- a/iceoryx2-cal/tests/dynamic_storage_posix_shared_memory_tests.rs +++ b/iceoryx2-cal/tests/dynamic_storage_posix_shared_memory_tests.rs @@ -106,8 +106,8 @@ mod dynamic_storage_posix_shared_memory { .timeout(TIMEOUT) .open(); - assert_that!(start.elapsed().unwrap(), ge TIMEOUT); assert_that!(sut, is_err); assert_that!(sut.err().unwrap(), eq DynamicStorageOpenError::InitializationNotYetFinalized); + assert_that!(start.elapsed().unwrap(), ge TIMEOUT); } } diff --git a/iceoryx2-cal/tests/shared_memory_posix_shared_memory_tests.rs b/iceoryx2-cal/tests/shared_memory_posix_shared_memory_tests.rs index 1dd68d1ef..dd4fe7047 100644 --- a/iceoryx2-cal/tests/shared_memory_posix_shared_memory_tests.rs +++ b/iceoryx2-cal/tests/shared_memory_posix_shared_memory_tests.rs @@ -52,8 +52,8 @@ mod shared_memory_posix_shared_memory_tests { .timeout(TIMEOUT) .open(); - assert_that!(start.elapsed().unwrap(), ge TIMEOUT); assert_that!(sut, is_err); assert_that!(sut.err().unwrap(), eq SharedMemoryOpenError::InitializationNotYetFinalized); + assert_that!(start.elapsed().unwrap(), ge TIMEOUT); } } diff --git a/iceoryx2-cal/tests/static_storage_trait_tests.rs b/iceoryx2-cal/tests/static_storage_trait_tests.rs index ba84b8787..383e3b177 100644 --- a/iceoryx2-cal/tests/static_storage_trait_tests.rs +++ b/iceoryx2-cal/tests/static_storage_trait_tests.rs @@ -418,12 +418,12 @@ mod static_storage { let start = std::time::SystemTime::now(); let storage_reader = Sut::Builder::new(&storage_name).open(TIMEOUT); - assert_that!(start.elapsed().unwrap(), ge TIMEOUT); assert_that!(storage_reader, is_err); assert_that!( storage_reader.err().unwrap(), eq StaticStorageOpenError::InitializationNotYetFinalized ); + assert_that!(start.elapsed().unwrap(), ge TIMEOUT); } #[test] diff --git a/iceoryx2-cal/tests/zero_copy_connection_posix_shared_memory_tests.rs b/iceoryx2-cal/tests/zero_copy_connection_posix_shared_memory_tests.rs index 7bc51bab8..d946a20a2 100644 --- a/iceoryx2-cal/tests/zero_copy_connection_posix_shared_memory_tests.rs +++ b/iceoryx2-cal/tests/zero_copy_connection_posix_shared_memory_tests.rs @@ -53,8 +53,8 @@ mod zero_copy_connection_posix_shared_memory_tests { .receiver_max_borrowed_samples(1) .create_sender(1); - assert_that!(start.elapsed().unwrap(), ge TIMEOUT); assert_that!(sut, is_err); assert_that!(sut.err().unwrap(), eq ZeroCopyCreationError::InitializationNotYetFinalized); + assert_that!(start.elapsed().unwrap(), ge TIMEOUT); } }