summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorIvo Stoilov (GitHub) <istoilov@luxoft.com>2017-01-31 12:51:59 +0200
committerIvo Stoilov (GitHub) <istoilov@luxoft.com>2017-02-06 12:29:53 +0200
commit4b05cf18aa66e40d42935bc8d0873d22291b29e2 (patch)
tree79541a8a8992239675641fdfce19bb2227540f2c /src/components
parent56c905bba5f09a114f7abffc51315dc4980fc47f (diff)
downloadsdl_core-4b05cf18aa66e40d42935bc8d0873d22291b29e2.tar.gz
Fix waits count in ConnectionHandler tests
Related tasks APPLINK-30588 APPLINK-30977
Diffstat (limited to 'src/components')
-rw-r--r--src/components/connection_handler/test/connection_handler_impl_test.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/connection_handler/test/connection_handler_impl_test.cc b/src/components/connection_handler/test/connection_handler_impl_test.cc
index c91bf9156b..02faef2a91 100644
--- a/src/components/connection_handler/test/connection_handler_impl_test.cc
+++ b/src/components/connection_handler/test/connection_handler_impl_test.cc
@@ -844,7 +844,7 @@ TEST_F(ConnectionHandlerTest, CloseSessionWithCommonReason) {
connection_handler_->CloseSession(connection_key_, kCommon);
- EXPECT_TRUE(waiter.WaitFor(1, 1000));
+ EXPECT_TRUE(waiter.WaitFor(times++, 1000));
}
TEST_F(ConnectionHandlerTest, CloseSessionWithFloodReason) {
@@ -890,7 +890,7 @@ TEST_F(ConnectionHandlerTest, CloseSessionWithFloodReason) {
connection_handler_->CloseSession(connection_key_, kFlood);
- EXPECT_TRUE(waiter.WaitFor(1, 1000));
+ EXPECT_TRUE(waiter.WaitFor(times++, 1000));
}
TEST_F(ConnectionHandlerTest, CloseSessionWithMalformedMessage) {
@@ -934,7 +934,7 @@ TEST_F(ConnectionHandlerTest, CloseSessionWithMalformedMessage) {
connection_handler_->CloseSession(connection_key_, kMalformed);
- EXPECT_TRUE(waiter.WaitFor(1, 1000));
+ EXPECT_TRUE(waiter.WaitFor(times++, 1000));
}
TEST_F(ConnectionHandlerTest, CloseConnectionSessionsWithMalformedMessage) {
@@ -978,7 +978,7 @@ TEST_F(ConnectionHandlerTest, CloseConnectionSessionsWithMalformedMessage) {
connection_handler_->CloseConnectionSessions(uid_, kMalformed);
- EXPECT_TRUE(waiter.WaitFor(1, 1000));
+ EXPECT_TRUE(waiter.WaitFor(times++, 1000));
}
TEST_F(ConnectionHandlerTest, CloseConnectionSessionsWithCommonReason) {
@@ -1024,7 +1024,7 @@ TEST_F(ConnectionHandlerTest, CloseConnectionSessionsWithCommonReason) {
connection_handler_->CloseConnectionSessions(uid_, kCommon);
- EXPECT_TRUE(waiter.WaitFor(1, 1000));
+ EXPECT_TRUE(waiter.WaitFor(times++, 1000));
}
TEST_F(ConnectionHandlerTest, StartService_withServices) {