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 acab5c7
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 @@ -87,6 +87,7 @@ class IamProxyTest : public testing::Test {
void TearDown() override {
token_cache.clear();
cleanup_odbc_handles(nullptr, dbc, ds);
delete mock_connection_proxy;
}
};

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 acab5c7

Please sign in to comment.