Skip to content
Snippets Groups Projects
Commit ea157129 authored by Martin Killenberg's avatar Martin Killenberg
Browse files

Fixed test with running doocs server (always succeeded before)

parent 8a4e76a2
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ void testVariableExistence(){
BOOST_CHECK_NO_THROW( DoocsServerTestHelper::doocsGet<int>( (std::string("//")+location+"/"+ property).c_str() ));
}
}
// DoocsServerTestHelper::doocsGet<int>("//MYDUMMY/SOME_INT")
// DoocsServerTestHelper::doocsGet<int>("//MYDUMMY/SOME_INT")
}
// due to the doocs server thread you can only have one test suite
......@@ -52,14 +52,9 @@ public:
: test_suite("PlainVariableCreation test suite") ,
doocsServerThread(eq_server, argc, argv)
{
doocsServerThread.detach();
add( BOOST_TEST_CASE( &testVariableExistence ) );
}
~PlainVariableCreationTestSuite(){
// gracefully shut down the doocs server and wait for the thread to join
std::cout << "FIXME: I think you can ignore the folloging 'write_line' warning when stopping the doocs server" << std::endl;
DoocsServerTestHelper::doocsSet("//PLAIN_VARIABLE_CREATION_TEST._SVR/SVR.STOP_SVR",true);
doocsServerThread.join();
}
protected:
std::thread doocsServerThread;
......
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