Skip to content

Commit

Permalink
testTrigger: Improve race condition a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
phako committed Apr 9, 2020
1 parent f602a0a commit 73629cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/executables_src/testTrigger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(testTriggerDevToApp, T, test_types) {

// single theaded test
app.testModule.feedingToDevice = 42;
BOOST_CHECK(app.testModule.consumingPush == 1);
CHECK_TIMEOUT((app.testModule.consumingPush.readLatest(), app.testModule.consumingPush == 1), 10000);
app.testModule.feedingToDevice.write();
BOOST_CHECK(app.testModule.consumingPush.readNonBlocking() == false);
BOOST_CHECK(app.testModule.consumingPush == 1);
Expand Down

0 comments on commit 73629cd

Please sign in to comment.