Skip to content

Commit

Permalink
chore: clean up memory leaks in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq committed Sep 11, 2024
1 parent 54e666f commit e11669d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unit_testing/iam_proxy_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class IamProxyTest : public testing::Test {
}

void TearDown() override {
delete mock_connection_proxy;
token_cache.clear();
cleanup_odbc_handles(nullptr, dbc, ds);
}
Expand All @@ -97,8 +98,6 @@ TEST_F(IamProxyTest, TokenExpiration) {

std::this_thread::sleep_for(std::chrono::seconds(time_to_expire + 1));
EXPECT_TRUE(info.is_expired());

delete mock_connection_proxy;
}

TEST_F(IamProxyTest, TokenGetsCachedAndRetrieved) {
Expand Down

0 comments on commit e11669d

Please sign in to comment.