diff --git a/tests/test_ssl_cert_provider.cpp b/tests/test_ssl_cert_provider.cpp index bc8aa9e41d..3b0b741967 100644 --- a/tests/test_ssl_cert_provider.cpp +++ b/tests/test_ssl_cert_provider.cpp @@ -98,6 +98,7 @@ TEST_F(SSLCertProviderFixture, persists_cert_and_key) TEST_F(SSLCertProviderFixture, creates_different_certs_per_server_name) { const auto [mock_platform, _] = mpt::MockPlatform::inject(); + // move the multipass_root_cert.pem into the temporary directory so it will be deleted automatically later EXPECT_CALL(*mock_platform, get_root_cert_path()) .WillRepeatedly(Return(std::filesystem::path{cert_dir.toStdU16String()} / "multipass_root_cert.pem"));