summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/distributor_host_info_reporter_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/distributor/distributor_host_info_reporter_test.cpp')
-rw-r--r--storage/src/tests/distributor/distributor_host_info_reporter_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/src/tests/distributor/distributor_host_info_reporter_test.cpp b/storage/src/tests/distributor/distributor_host_info_reporter_test.cpp
index 65ccc65bdcf..8cbe2045fd2 100644
--- a/storage/src/tests/distributor/distributor_host_info_reporter_test.cpp
+++ b/storage/src/tests/distributor/distributor_host_info_reporter_test.cpp
@@ -7,6 +7,7 @@
#include <vespa/vespalib/data/slime/slime.h>
#include <vespa/vespalib/io/fileutil.h>
#include <vespa/vespalib/util/jsonstream.h>
+#include <vespa/vespalib/testkit/testapp.h>
#include <tests/common/hostreporter/util.h>
namespace storage {
@@ -186,7 +187,7 @@ DistributorHostInfoReporterTest::generateExampleJson()
std::string jsonString = json.str();
- std::string path = "../../../protocols/getnodestate/distributor.json";
+ std::string path = vespalib::TestApp::GetSourceDirectory() + "../../../protocols/getnodestate/distributor.json";
std::string goldenString = File::readAll(path);
vespalib::slime::Memory goldenMemory(goldenString);