diff options
author | Lutz Bichler <Lutz.Bichler@bmw.de> | 2020-02-12 13:04:15 +0100 |
---|---|---|
committer | Lutz Bichler <Lutz.Bichler@bmw.de> | 2020-02-12 13:04:15 +0100 |
commit | 8371cdca9463a75220c4de92b47c8df9d3bbe346 (patch) | |
tree | 16b4bf73c284b026b0ac032171110dafd1752196 /test/application_tests/application_test_client.cpp | |
parent | ee44d19e0a3773adcda3bace073c66e334a3e6a7 (diff) | |
download | vSomeIP-8371cdca9463a75220c4de92b47c8df9d3bbe346.tar.gz |
vsomeip 3.1.7.13.1.7.1
Diffstat (limited to 'test/application_tests/application_test_client.cpp')
-rw-r--r-- | test/application_tests/application_test_client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/application_tests/application_test_client.cpp b/test/application_tests/application_test_client.cpp index 25f7c09..30d0084 100644 --- a/test/application_tests/application_test_client.cpp +++ b/test/application_tests/application_test_client.cpp @@ -17,7 +17,7 @@ #include <gtest/gtest.h> #include <vsomeip/vsomeip.hpp> -#include "../../implementation/logging/include/logger.hpp" +#include <vsomeip/internal/logger.hpp> #include "application_test_globals.hpp" @@ -26,7 +26,6 @@ public: application_test_client(struct application_test::service_info _service_info) : service_info_(_service_info), app_(vsomeip::runtime::get()->create_application("client")), - service_available_(false), wait_until_registered_(true), wait_until_service_available_(true), wait_for_stop_(true), @@ -164,12 +163,14 @@ public: << " responses. Delta: " << sent_requests_ - received_responses_; std::uint32_t counter(0); if (check) { - while(sent_requests_ < received_responses_) { + while(sent_requests_ == 0 || sent_requests_ < received_responses_) { std::this_thread::sleep_for(std::chrono::milliseconds(100)); if(++counter > 50) { break; } } + EXPECT_GT(sent_requests_, 0u); + EXPECT_GT(received_responses_, 0u); EXPECT_EQ(sent_requests_, received_responses_); } stop_condition_.notify_one(); @@ -178,7 +179,6 @@ public: private: struct application_test::service_info service_info_; std::shared_ptr<vsomeip::application> app_; - bool service_available_; bool wait_until_registered_; bool wait_until_service_available_; |