Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Mar 1, 2024
1 parent c12c1ec commit 3f11772
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/test/pq/connection_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ void run()
const auto pool = tao::pq::connection_pool::create< limited_connection_pool >( connection_string );

TEST_ASSERT( pool->empty() );
TEST_ASSERT( pool->size() == 0 );
TEST_ASSERT( pool->attached() == 0 );

TEST_ASSERT( pool->connection() );
Expand Down Expand Up @@ -61,19 +60,19 @@ void run()
TEST_ASSERT( pool->size() == 2 );
TEST_ASSERT( pool->attached() == 0 );
{
const auto c0 = pool->connection();
const auto c1 = pool->connection();
TEST_ASSERT( pool->size() == 0 );
[[maybe_unused]] const auto c0 = pool->connection();
[[maybe_unused]] const auto c1 = pool->connection();
TEST_ASSERT( pool->empty() );
TEST_ASSERT( pool->attached() == 2 );
{
const auto c2 = pool->connection();
const auto c3 = pool->connection();
TEST_ASSERT( pool->size() == 0 );
[[maybe_unused]] const auto c2 = pool->connection();
[[maybe_unused]] const auto c3 = pool->connection();
TEST_ASSERT( pool->empty() );
TEST_ASSERT( pool->attached() == 4 );

TEST_THROWS( pool->connection() );

TEST_ASSERT( pool->size() == 0 );
TEST_ASSERT( pool->empty() );
TEST_ASSERT( pool->attached() == 4 );
}
TEST_ASSERT( pool->size() == 2 );
Expand Down

0 comments on commit 3f11772

Please sign in to comment.