From: Tomek Mrugalski Date: Tue, 7 Feb 2017 13:06:27 +0000 (+0100) Subject: [5076] Unit-test fixed. X-Git-Tag: trac3590_base~3^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f69e993d4178b3b6701bfbf28b943d0eb5ce09bc;p=thirdparty%2Fkea.git [5076] Unit-test fixed. --- diff --git a/src/bin/agent/tests/parser_unittests.cc b/src/bin/agent/tests/parser_unittests.cc index 4b61d18149..29ab6c3c08 100644 --- a/src/bin/agent/tests/parser_unittests.cc +++ b/src/bin/agent/tests/parser_unittests.cc @@ -506,12 +506,12 @@ TEST(ParserTest, errors) { "\"foo\" in map."); testError("{ \"Control-agent\" }\n", ParserContext::PARSER_AGENT, - ":1.11: syntax error, unexpected }, " + ":1.19: syntax error, unexpected }, " "expecting :"); - testError("{ \"Control-agent\":[]\n", + testError("{ \"Control-agent\":", ParserContext::PARSER_AGENT, - ":2.1: syntax error, unexpected end of file, " - "expecting \",\" or }"); + ":1.19: syntax error, unexpected end of file, " + "expecting {"); testError("{}{}\n", ParserContext::PARSER_JSON, ":1.3: syntax error, unexpected {, "