summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/test/sql_pt_representation_test.cc
diff options
context:
space:
mode:
authorAlexander Kutsan <akutsan@luxoft.com>2016-12-30 15:30:39 +0000
committerAlexander Kutsan <alexkutsan@ya.ru>2017-01-03 10:52:57 +0200
commit48d9753ee38963e0e7f7bc969f4d6fff9ba18ec8 (patch)
tree6dc431f68d5e3e0ff21ae9003c9f0de461923ad2 /src/components/policy/policy_external/test/sql_pt_representation_test.cc
parente09618871f2e41ae05e0f22bd30e3cde094658e2 (diff)
downloadsdl_core-48d9753ee38963e0e7f7bc969f4d6fff9ba18ec8.tar.gz
Optimise Policies UT time execution
Make listener object against shared pointer, Reduce count and timeout for attempts to init policy db Related issue : APPLINK-31156
Diffstat (limited to 'src/components/policy/policy_external/test/sql_pt_representation_test.cc')
-rw-r--r--src/components/policy/policy_external/test/sql_pt_representation_test.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/policy/policy_external/test/sql_pt_representation_test.cc b/src/components/policy/policy_external/test/sql_pt_representation_test.cc
index a29d554f3b..7269dcaa2f 100644
--- a/src/components/policy/policy_external/test/sql_pt_representation_test.cc
+++ b/src/components/policy/policy_external/test/sql_pt_representation_test.cc
@@ -368,8 +368,8 @@ class SQLPTRepresentationTest2 : public ::testing::Test {
delete reps;
}
const std::string kAppStorageFolder = "storage123";
- const uint16_t kOpenAttemptTimeoutMs = 700u;
- const uint16_t kAttemptsToOpenPolicyDB = 8u;
+ const uint16_t kOpenAttemptTimeoutMs = 70u;
+ const uint16_t kAttemptsToOpenPolicyDB = 2u;
};
TEST_F(SQLPTRepresentationTest2,
@@ -377,8 +377,6 @@ TEST_F(SQLPTRepresentationTest2,
EXPECT_EQ(::policy::FAIL, reps->Init(&policy_settings_));
// Check Actual attempts number made to try to open DB
EXPECT_EQ(kAttemptsToOpenPolicyDB, reps->open_counter());
- // Check timeot value correctly read from config file.
- EXPECT_EQ(700u, kOpenAttemptTimeoutMs);
}
TEST_F(SQLPTRepresentationTest,