From 374603523d128124c7f750c50db333c692fff0d3 Mon Sep 17 00:00:00 2001 From: Razvan Becheriu Date: Fri, 6 Nov 2020 11:02:01 +0200 Subject: [#1375] removed unused IOService --- src/lib/database/database_connection.cc | 2 +- src/lib/database/tests/database_connection_unittest.cc | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lib/database') diff --git a/src/lib/database/database_connection.cc b/src/lib/database/database_connection.cc index 6c5d427dc2..03e0f78547 100644 --- a/src/lib/database/database_connection.cc +++ b/src/lib/database/database_connection.cc @@ -138,7 +138,7 @@ DatabaseConnection::makeReconnectCtl(const std::string& timer_name) { // Wasn't specified so we'll use default of 0; } - reconnect_ctl_ = boost::make_shared(timer_name, type, retries, + reconnect_ctl_ = boost::make_shared(type, timer_name, retries, interval); } diff --git a/src/lib/database/tests/database_connection_unittest.cc b/src/lib/database/tests/database_connection_unittest.cc index 7442454045..f7e26720e5 100644 --- a/src/lib/database/tests/database_connection_unittest.cc +++ b/src/lib/database/tests/database_connection_unittest.cc @@ -230,7 +230,6 @@ TEST_F(DatabaseConnectionCallbackTest, dbRecoveredCallback) { ASSERT_EQ(3, db_reconnect_ctl_->maxRetries()); ASSERT_EQ(3, db_reconnect_ctl_->retriesLeft()); EXPECT_EQ(60000, db_reconnect_ctl_->retryInterval()); - ASSERT_TRUE(db_reconnect_ctl_->checkRetries()); /// Verify that checkRetries() correctly decrements /// down to zero, and that retriesLeft() returns @@ -294,7 +293,6 @@ TEST_F(DatabaseConnectionCallbackTest, dbFailedCallback) { ASSERT_EQ(3, db_reconnect_ctl_->maxRetries()); ASSERT_EQ(3, db_reconnect_ctl_->retriesLeft()); EXPECT_EQ(60000, db_reconnect_ctl_->retryInterval()); - ASSERT_TRUE(db_reconnect_ctl_->checkRetries()); /// Verify that checkRetries() correctly decrements /// down to zero, and that retriesLeft() returns -- cgit v1.2.3