summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/common/hostreporter/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/common/hostreporter/util.cpp')
-rw-r--r--storage/src/tests/common/hostreporter/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/tests/common/hostreporter/util.cpp b/storage/src/tests/common/hostreporter/util.cpp
index ad4931cb15f..e0563a431e6 100644
--- a/storage/src/tests/common/hostreporter/util.cpp
+++ b/storage/src/tests/common/hostreporter/util.cpp
@@ -26,7 +26,7 @@ reporterToSlime(HostReporter &hostReporter, vespalib::Slime &slime) {
std::string jsonData = json.str();
size_t parsed = JsonFormat::decode(Memory(jsonData), slime);
- if (!parsed) {
+ if (parsed == 0) {
CPPUNIT_FAIL("jsonData is not json:\n" + jsonData);
}
}