summaryrefslogtreecommitdiff
path: root/test/application_tests/application_test_single_process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/application_tests/application_test_single_process.cpp')
-rw-r--r--test/application_tests/application_test_single_process.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/application_tests/application_test_single_process.cpp b/test/application_tests/application_test_single_process.cpp
index 1d0d4a0..b4497a7 100644
--- a/test/application_tests/application_test_single_process.cpp
+++ b/test/application_tests/application_test_single_process.cpp
@@ -11,14 +11,14 @@
TEST(someip_application_test_single_process, notify_increasing_counter)
{
// start application acting as daemon (rm_stub)
- application_test_daemon its_daemon;
+ auto its_daemon = std::make_shared<application_test_daemon>();
// start receiver service (rm_proxy)
application_test_service its_receiver(application_test::service);
// stop the daemon (rm_stub goes away)
- its_daemon.stop();
-
+ its_daemon->stop();
+ its_daemon.reset();
// restart client which tries to communicate with service multiple times
// thus it will always be the new routing manager
for (int var = 0; var < 10; ++var) {