summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/execution_service/cas_server.test.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-27 12:36:22 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-05 12:58:35 +0200
commit0d8a4ad15b93283cc31787b039051b9e9a285ba8 (patch)
tree40efbd2206659d6836ec0b3beec0811d2a01644f /test/buildtool/execution_api/execution_service/cas_server.test.cpp
parentf82adab238f4b45d43049687c8e52bf7372ba053 (diff)
downloadjustbuild-0d8a4ad15b93283cc31787b039051b9e9a285ba8.tar.gz
Pass StorageConfig and Storage to ServerImpl
Diffstat (limited to 'test/buildtool/execution_api/execution_service/cas_server.test.cpp')
-rw-r--r--test/buildtool/execution_api/execution_service/cas_server.test.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/buildtool/execution_api/execution_service/cas_server.test.cpp b/test/buildtool/execution_api/execution_service/cas_server.test.cpp
index 1cdb71f8..70a674ca 100644
--- a/test/buildtool/execution_api/execution_service/cas_server.test.cpp
+++ b/test/buildtool/execution_api/execution_service/cas_server.test.cpp
@@ -20,6 +20,8 @@
#include "src/buildtool/execution_api/execution_service/cas_server.hpp"
#include "src/buildtool/file_system/git_repo.hpp"
#include "src/buildtool/file_system/object_type.hpp"
+#include "src/buildtool/storage/config.hpp"
+#include "src/buildtool/storage/storage.hpp"
#include "test/utils/hermeticity/local.hpp"
namespace {
@@ -42,7 +44,8 @@ namespace {
TEST_CASE_METHOD(HermeticLocalTestFixture,
"CAS Service: upload incomplete tree",
"[execution_service]") {
- auto cas_server = CASServiceImpl{};
+ auto cas_server =
+ CASServiceImpl{&StorageConfig::Instance(), &Storage::Instance()};
auto instance_name = std::string{"remote-execution"};
// Create an empty tree.