From b05cedb5098d36c42afcb1d25e0368b74048f26f Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 16 Jul 2024 09:17:59 -0500 Subject: [PATCH] refactor --- repertory/repertory_test/src/database_test.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/repertory/repertory_test/src/database_test.cpp b/repertory/repertory_test/src/database_test.cpp index bba981a1..c2c5e1b7 100644 --- a/repertory/repertory_test/src/database_test.cpp +++ b/repertory/repertory_test/src/database_test.cpp @@ -35,10 +35,8 @@ TEST(database, db_insert) { { sqlite3 *db3_ptr{nullptr}; auto res = sqlite3_open_v2( - utils::path::absolute( - utils::path::combine(get_test_dir(), {"test.db3"})) - .c_str(), - &db3_ptr, SQLITE_OPEN_READWRITE, nullptr); + utils::path::combine(get_test_dir(), {"test.db3"}).c_str(), &db3_ptr, + SQLITE_OPEN_READWRITE, nullptr); ASSERT_EQ(SQLITE_OK, res); ASSERT_TRUE(db3_ptr != nullptr);