From 548f422579abd03cc49b024d7f9bd78cd8e1675a Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Fri, 11 Feb 2022 18:01:14 +0100 Subject: [PATCH] TST: update tests --- test/test_connection.cpp | 2 +- test/test_transaction.cpp | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/test/test_connection.cpp b/test/test_connection.cpp index c3686a9..f0042f2 100644 --- a/test/test_connection.cpp +++ b/test/test_connection.cpp @@ -84,7 +84,7 @@ TEST(test_connection, connection_ssl_authentication_error_anonymous) { EXPECT_THROW_MESSAGE(connection.RetrieveVersionInfo(), AuthenticationError, "The attempt to execute this transaction has not been " "executed at all because the authentication did not " - "succeed. Original error: Please login."); + "succeed. Original error: Please log in!"); } TEST(test_connection, connection_ssl_authentication_error_wrong_credentials) { diff --git a/test/test_transaction.cpp b/test/test_transaction.cpp index 865e18e..c165ec2 100644 --- a/test/test_transaction.cpp +++ b/test/test_transaction.cpp @@ -65,17 +65,14 @@ public: */ static auto generateDatetimeValues() -> std::vector<std::string> { std::vector<std::string> values = { - //TODO(tf) (these work, but would need conversion here in the tests due - //to the time zone information) + // TODO(tf) (these work, but would need conversion here in the tests due + // to the time zone information) //"2022-12-24T18:15:00.999999+0200", //"2022-12-24T18:15:00.999999UTC", //"2022-12-24T18:15:00", //"2022-12-24T18:15:00.999999", //"", - "2022", - "2022-12", - "2022-12-24" - }; + "2022", "2022-12", "2022-12-24"}; return values; } @@ -775,7 +772,7 @@ TEST_F(test_transaction, test_datetime_values) { auto values_orig = test_transaction::generateDatetimeValues(); auto props_orig = std::vector<Entity>(); size_t i = 0; - for (const auto& value : values_orig) { + for (const auto &value : values_orig) { auto insert_transaction(connection->CreateTransaction()); Entity prop; prop.SetRole(Role::PROPERTY); @@ -797,7 +794,7 @@ TEST_F(test_transaction, test_datetime_values) { // Retrieve and verify i = 0; - for (const auto& value : values_orig) { + for (const auto &value : values_orig) { auto retrieve_transaction(connection->CreateTransaction()); const auto prop = props_orig[i]; const auto name = std::string("Prop ") + std::to_string(i); -- GitLab