Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions backend/test/backend/real_server_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class RealServerTests : public ::testing::Test
protected:
void SetUp() override
{
std::ofstream privateKeyFile{temporaryRoot / "key.private", std::ios_base::binary};
std::ofstream privateKeyFile{isolateDirectory_.path() / "key.private", std::ios_base::binary};
privateKeyFile.write(privateKey, std::strlen(privateKey));
}

Expand Down Expand Up @@ -140,7 +140,8 @@ class RealServerTests : public ::testing::Test
}

protected:
Utility::TemporaryDirectory isolateDirectory_{temporaryRoot, false};
/** @brief The test's own directory for its server, removed with the test. temporaryRoot outlives every test. */
Utility::TemporaryDirectory isolateDirectory_{temporaryRoot};
boost::asio::thread_pool pool_{1};
nlohmann::json defaultPackageJson_ = nlohmann::json({
{"name", "test"},
Expand Down
2 changes: 1 addition & 1 deletion backend/test/backend/test_existence_check.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace Test
return Paths::nativeToUtf8(root_.path() / relative);
}

Utility::TemporaryDirectory root_{temporaryRoot, false};
Utility::TemporaryDirectory root_{temporaryRoot};
};

TEST_F(ExistenceCheckTests, LocalMissingPathIsAbsentAndExistingPathsExist)
Expand Down
Loading