Skip to content

Commit

Permalink
Merge pull request #3689 from canonical/increase-robustness-of-driver…
Browse files Browse the repository at this point in the history
…-factory-tests

Increase robustness of driver factory tests
  • Loading branch information
georgeliao authored Sep 27, 2024
2 parents f11f181 + ece38c4 commit e1828dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/linux/test_platform_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "tests/mock_settings.h"
#include "tests/mock_standard_paths.h"
#include "tests/mock_utils.h"
#include "tests/qemu/linux/mock_dnsmasq_server.h"
#include "tests/temp_dir.h"
#include "tests/test_with_mocked_bin_path.h"

Expand Down Expand Up @@ -70,6 +71,9 @@ struct PlatformLinux : public mpt::TestWithMockedBinPath
template <typename VMFactoryType>
void aux_test_driver_factory(const QString& driver)
{
const mpt::MockDNSMasqServerFactory::GuardedMock dnsmasq_server_factory_attr{
mpt::MockDNSMasqServerFactory::inject<NiceMock>()};

auto factory = mpt::MockProcessFactory::Inject();
setup_driver_settings(driver);

Expand Down

0 comments on commit e1828dd

Please sign in to comment.