diff options
author | Tor Brede Vekterli <vekterli@vespa.ai> | 2024-05-14 13:28:20 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@vespa.ai> | 2024-05-14 13:28:20 +0000 |
commit | f8eb4ce5e2eaad0899125c7117446acd578f72b5 (patch) | |
tree | 8e08f94477acf64818631808c43f399b5da519d5 /storage/src/tests/common/testhelper.cpp | |
parent | 33166c63cd5c27a4f6c09b9e5b92f64ea36ee7ab (diff) |
Remove legacy storage node root directory IO in unit tests
Once upon a time, VDS roamed the lands. It used real disk IO as
part of tests. Then came the meteor and in-memory dummy persistence
took over. Now it is time for the fossils to be moved into a museum
where they belong.
Also make PID file writing conditional on a config that is set to
`false` during unit testing (but `true` as default).
Diffstat (limited to 'storage/src/tests/common/testhelper.cpp')
-rw-r--r-- | storage/src/tests/common/testhelper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/src/tests/common/testhelper.cpp b/storage/src/tests/common/testhelper.cpp index f295d955ab2..91758b894b0 100644 --- a/storage/src/tests/common/testhelper.cpp +++ b/storage/src/tests/common/testhelper.cpp @@ -68,6 +68,7 @@ vdstestlib::DirConfig getStandardConfig(bool storagenode, const std::string & ro rootFolder += (storagenode ? "vdsroot" : "vdsroot.distributor"); config->set("root_folder", rootFolder); config->set("is_distributor", (storagenode ? "false" : "true")); + config->set("write_pid_file_on_startup", "false"); config = &dc.addConfig("stor-devices"); config->set("root_folder", rootFolder); config = &dc.addConfig("stor-status"); |