Skip to content
Snippets Groups Projects
Commit c65ea2a5 authored by vargheseg's avatar vargheseg
Browse files

corrected comments on runtimeErrorHandling_testPushTypeReadNonBlocking

parent eaa941de
No related branches found
No related tags found
No related merge requests found
......@@ -191,8 +191,10 @@ BOOST_FIXTURE_TEST_CASE(runtimeErrorHandling_testPushTypeRead, Fixture) {
}
/*
* - On first call after a runtime error :
* - Subsequent calls are skipped
* On runtime error:
* - readNonBlocking on pushVariable returns true with a new version
* number.
* - subsequent calls are ignored till recovery.
*/
BOOST_FIXTURE_TEST_CASE(runtimeErrorHandling_testPushTypeReadNonBlocking, Fixture) {
std::cout << "runtimeErrorHandling_testPushTypeReadNonBlocking" << std::endl;
......@@ -212,7 +214,7 @@ BOOST_FIXTURE_TEST_CASE(runtimeErrorHandling_testPushTypeReadNonBlocking, Fixtur
deviceBackend->throwExceptionRead = true;
deviceBackend->triggerPush(ctk::RegisterPath("REG1/PUSH_READ"), version);
CHECK_TIMEOUT(pushVariable.readNonBlocking()== true, 10000);
CHECK_TIMEOUT(pushVariable.readNonBlocking() == true, 10000);
BOOST_CHECK_NE(pushVariable, 100);
BOOST_CHECK(pushVariable.dataValidity() == ctk::DataValidity::faulty);
auto versionNumberOnRuntimeError = pushVariable.getVersionNumber();
......
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