Skip to content

Commit f0a2692

Browse files
committed
clang-tidy false positive
1 parent 2951481 commit f0a2692

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

test/unittest/presentation/test_presentation.cpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -410,17 +410,13 @@ TEST_F(TestPresentation, makeSubscriber_raw)
410410

411411
Presentation presentation{mr_, scheduler_, transport_mock_};
412412

413-
scheduler_.scheduleAt(1s, [&](const auto&) {
414-
//
415-
auto maybe_sub1 = presentation.makeSubscriber(rx_params.subject_id, rx_params.extent_bytes);
416-
EXPECT_THAT(maybe_sub1, VariantWith<Subscriber<void>>(_));
413+
auto maybe_sub1 = presentation.makeSubscriber(rx_params.subject_id, rx_params.extent_bytes);
414+
EXPECT_THAT(maybe_sub1, VariantWith<Subscriber<void>>(_));
417415

418-
auto maybe_sub2 = presentation.makeSubscriber(rx_params.subject_id, rx_params.extent_bytes, [](const auto&) {});
419-
EXPECT_THAT(maybe_sub2, VariantWith<Subscriber<void>>(_));
416+
auto maybe_sub2 = presentation.makeSubscriber(rx_params.subject_id, rx_params.extent_bytes, [](const auto&) {});
417+
EXPECT_THAT(maybe_sub2, VariantWith<Subscriber<void>>(_));
420418

421-
EXPECT_CALL(msg_rx_session_mock, deinit()).Times(1);
422-
});
423-
scheduler_.spinFor(10s);
419+
EXPECT_CALL(msg_rx_session_mock, deinit()).Times(1);
424420
}
425421

426422
TEST_F(TestPresentation, makeSubscriber_with_failure)

0 commit comments

Comments
 (0)