diff options
author | Johannes Schanda <schanda@itestra.de> | 2013-02-28 10:21:19 +0100 |
---|---|---|
committer | Johannes Schanda <schanda@itestra.de> | 2013-02-28 10:21:19 +0100 |
commit | 07a2ee6636296be3d50d8a8b15104d1e56004481 (patch) | |
tree | 634dc700b998e3bbad8d6dde182fd80fbcd7756e | |
parent | e31bcf92826d1b8a1104a4eecb8125758607d1bd (diff) | |
download | genivi-common-api-dbus-runtime-07a2ee6636296be3d50d8a8b15104d1e56004481.tar.gz |
tests: Various timing fixes
-rw-r--r-- | src/test/DBusAddressTranslatorTest.cpp | 3 | ||||
-rw-r--r-- | src/test/DBusProxyTest.cpp | 2 | ||||
-rw-r--r-- | src/test/DBusServiceRegistryTest.cpp | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/test/DBusAddressTranslatorTest.cpp b/src/test/DBusAddressTranslatorTest.cpp index 6c17e29..c2b5286 100644 --- a/src/test/DBusAddressTranslatorTest.cpp +++ b/src/test/DBusAddressTranslatorTest.cpp @@ -75,7 +75,8 @@ static const std::string fileString = "[local:fake.legacy.service.LegacyInterface:fake.legacy.service]\n" "dbus_connection=fake.legacy.service.connection\n" "dbus_object=/some/legacy/path/6259504\n" -"dbus_interface=fake.legacy.service.LegacyInterface\n"; +"dbus_interface=fake.legacy.service.LegacyInterface\n" +"dbus_predefined=true\n"; typedef std::vector<CommonAPI::DBus::DBusServiceAddress>::value_type vt; static const std::vector<CommonAPI::DBus::DBusServiceAddress> dbusAddresses = { diff --git a/src/test/DBusProxyTest.cpp b/src/test/DBusProxyTest.cpp index 25b9a3b..7a5f817 100644 --- a/src/test/DBusProxyTest.cpp +++ b/src/test/DBusProxyTest.cpp @@ -185,7 +185,7 @@ TEST_F(ProxyTest, ServiceStatus) { break; } } - + sleep(1); auto found = std::find(availableDBusServices.begin(), availableDBusServices.end(), commonApiAddress); ASSERT_TRUE(availableDBusServices.begin() != availableDBusServices.end()); diff --git a/src/test/DBusServiceRegistryTest.cpp b/src/test/DBusServiceRegistryTest.cpp index 12656e7..dbbd7d7 100644 --- a/src/test/DBusServiceRegistryTest.cpp +++ b/src/test/DBusServiceRegistryTest.cpp @@ -130,6 +130,7 @@ class DBusServiceRegistryTestWithPredefinedRemote: public ::testing::Test { TEST_F(DBusServiceRegistryTestWithPredefinedRemote, RecognizesCommonAPIDBusServiceInstanceAsAlive) { + sleep(1); ASSERT_TRUE(dbusServiceRegistry_->isServiceInstanceAlive("test.service.name", "test.instance.name", "/test/instance/name")); } |