Skip to content

Commit

Permalink
VerifyAndClearExpectations on TestConfigFile before TearDown() of sup…
Browse files Browse the repository at this point in the history
…erclass
  • Loading branch information
AlanGriffiths committed Sep 30, 2024
1 parent a4fabf3 commit 3367f71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/miral/config_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ struct TestConfigFile : PendingLoad, miral::TestServer
miral::TestServer::SetUp();
ON_CALL(*this, load(testing::_, testing::_)).WillByDefault([this]{ notify_load(); });
}

void TearDown() override
{
testing::Mock::VerifyAndClearExpectations(this);
miral::TestServer::TearDown();
}
};

char const* const home = "/tmp/test_reloading_config_file/home";
Expand Down

0 comments on commit 3367f71

Please sign in to comment.