Skip to content
Snippets Groups Projects
Commit d890b757 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

increased some timeouts in tests to make sure it works with valgrind as well

parent 516e61cf
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( testTwoScalarPushAccessors, T, test_types ) {
app.testModule.feedingPush.write();
// check that the consumer now receives the just written value
BOOST_CHECK(futRead.wait_for(std::chrono::milliseconds(200)) == std::future_status::ready);
BOOST_CHECK(futRead.wait_for(std::chrono::milliseconds(2000)) == std::future_status::ready);
BOOST_CHECK( app.testModule.consumingPush == 120 );
}
......@@ -149,9 +149,9 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( testFourScalarPushAccessors, T, test_types ) {
app.testModule.feedingPush.write();
// check that the consumers now receive the just written value
BOOST_CHECK(futRead.wait_for(std::chrono::milliseconds(200)) == std::future_status::ready);
BOOST_CHECK(futRead2.wait_for(std::chrono::milliseconds(200)) == std::future_status::ready);
BOOST_CHECK(futRead3.wait_for(std::chrono::milliseconds(200)) == std::future_status::ready);
BOOST_CHECK(futRead.wait_for(std::chrono::milliseconds(2000)) == std::future_status::ready);
BOOST_CHECK(futRead2.wait_for(std::chrono::milliseconds(2000)) == std::future_status::ready);
BOOST_CHECK(futRead3.wait_for(std::chrono::milliseconds(2000)) == std::future_status::ready);
BOOST_CHECK( app.testModule.consumingPush == 120 );
BOOST_CHECK( app.testModule.consumingPush2 == 120 );
BOOST_CHECK( app.testModule.consumingPush3 == 120 );
......
......@@ -123,7 +123,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( testTriggerDevToApp, T, test_types ) {
app.testModule.theTrigger.write();
// check that the consumer now receives the just written value
BOOST_CHECK(futRead.wait_for(std::chrono::milliseconds(200)) == std::future_status::ready);
BOOST_CHECK(futRead.wait_for(std::chrono::milliseconds(2000)) == std::future_status::ready);
BOOST_CHECK( app.testModule.consumingPush == 120 );
}
......@@ -159,7 +159,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( testTriggerDevToCS, T, test_types ) {
app.testModule.feedingToDevice.write();
BOOST_CHECK(myCSVar->receive() == false);
app.testModule.theTrigger.write();
CHECK_TIMEOUT(myCSVar->receive() == true, 200);
CHECK_TIMEOUT(myCSVar->receive() == true, 2000);
BOOST_CHECK(*myCSVar == 42);
BOOST_CHECK(myCSVar->receive() == false);
......@@ -168,7 +168,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( testTriggerDevToCS, T, test_types ) {
app.testModule.feedingToDevice.write();
BOOST_CHECK(myCSVar->receive() == false);
app.testModule.theTrigger.write();
CHECK_TIMEOUT(myCSVar->receive() == true, 200);
CHECK_TIMEOUT(myCSVar->receive() == true, 2000);
BOOST_CHECK(*myCSVar == 120);
BOOST_CHECK(myCSVar->receive() == false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment