summaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-02-05 23:32:00 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-02-06 00:26:08 +0000
commit4c5a7cac411b30b9b4bd3ca067efcc9f3719b0ea (patch)
tree2e09c62b854357bbb1c8d433898d004e3f3995a5 /staging_vespalib
parentb84ef936b1cedce0b99f79e03b2fe25a8db5f7c3 (diff)
Reduce code visibility and include only what you need from config library.
Diffstat (limited to 'staging_vespalib')
-rw-r--r--staging_vespalib/src/tests/json/json.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/staging_vespalib/src/tests/json/json.cpp b/staging_vespalib/src/tests/json/json.cpp
index 15bb841b8ca..1a707ae1776 100644
--- a/staging_vespalib/src/tests/json/json.cpp
+++ b/staging_vespalib/src/tests/json/json.cpp
@@ -358,7 +358,7 @@ JSONTest::testJsonStreamErrors()
try{
vespalib::asciistream as;
vespalib::JsonStream stream(as);
- stream << Object() << Array();
+ stream << Object() << jsonstream::Array();
} catch (vespalib::JsonStreamException& e) {
EXPECT_EQUAL("Invalid state on call: An array value cannot be an object key ({}(ObjectExpectingKey))", e.getReason());
}
@@ -423,7 +423,7 @@ JSONTest::testJsonStreamErrors()
try{
vespalib::asciistream as;
vespalib::JsonStream stream(as);
- stream << Object() << End() << Array();
+ stream << Object() << End() << jsonstream::Array();
} catch (vespalib::JsonStreamException& e) {
EXPECT_EQUAL("Invalid state on call: Stream already finalized. Can't start a new array. (Finalized)", e.getReason());
}
@@ -442,7 +442,7 @@ JSONTest::testJsonStreamStateReporting()
using namespace vespalib::jsonstream;
vespalib::asciistream as;
vespalib::JsonStream stream(as);
- stream << Array() << 13
+ stream << jsonstream::Array() << 13
<< "foo"
<< Object() << "key" << "value" << End()
<< false