]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5076] Unit-test fixed.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 7 Feb 2017 13:06:27 +0000 (14:06 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 7 Feb 2017 13:06:27 +0000 (14:06 +0100)
src/bin/agent/tests/parser_unittests.cc

index 4b61d1814997218a58bdb9c42b7c6b42821ae9de..29ab6c3c08f48e42546ce540c6dbd15e6c7ff9f2 100644 (file)
@@ -506,12 +506,12 @@ TEST(ParserTest, errors) {
               "\"foo\" in map.");
     testError("{ \"Control-agent\" }\n",
               ParserContext::PARSER_AGENT,
-              "<string>:1.11: syntax error, unexpected }, "
+              "<string>:1.19: syntax error, unexpected }, "
               "expecting :");
-    testError("{ \"Control-agent\":[]\n",
+    testError("{ \"Control-agent\":",
               ParserContext::PARSER_AGENT,
-              "<string>:2.1: syntax error, unexpected end of file, "
-              "expecting \",\" or }");
+              "<string>:1.19: syntax error, unexpected end of file, "
+              "expecting {");
     testError("{}{}\n",
               ParserContext::PARSER_JSON,
               "<string>:1.3: syntax error, unexpected {, "