summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/execution_service
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-04 12:25:20 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-05 13:32:39 +0200
commit5140befaa10f65145fe041b416b7764127efc379 (patch)
tree9bb8d66c31455d275e5870e69c10d31789fb6c0a /test/buildtool/execution_api/execution_service
parente8992e622278d093165b3a0d8271a14424b61775 (diff)
downloadjustbuild-5140befaa10f65145fe041b416b7764127efc379.tar.gz
Convert Storage to a general class
Diffstat (limited to 'test/buildtool/execution_api/execution_service')
-rw-r--r--test/buildtool/execution_api/execution_service/cas_server.test.cpp5
1 files changed, 3 insertions, 2 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 70a674ca..5b6e50b5 100644
--- a/test/buildtool/execution_api/execution_service/cas_server.test.cpp
+++ b/test/buildtool/execution_api/execution_service/cas_server.test.cpp
@@ -44,8 +44,9 @@ namespace {
TEST_CASE_METHOD(HermeticLocalTestFixture,
"CAS Service: upload incomplete tree",
"[execution_service]") {
- auto cas_server =
- CASServiceImpl{&StorageConfig::Instance(), &Storage::Instance()};
+ auto const storage = Storage::Create(&StorageConfig::Instance());
+
+ auto cas_server = CASServiceImpl{&StorageConfig::Instance(), &storage};
auto instance_name = std::string{"remote-execution"};
// Create an empty tree.