]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5078] Corrected expected result in two unit tests.
authorMarcin Siodelski <marcin@isc.org>
Wed, 29 Mar 2017 11:31:23 +0000 (13:31 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 29 Mar 2017 16:43:15 +0000 (18:43 +0200)
src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc

index 3fc7e3274a3c0add1f7e6eebccaece3df1b0a0f0..a8e1b31431e886629c5e612594318819c5167409 100644 (file)
@@ -413,7 +413,7 @@ TEST_F(CtrlChannelDhcpv4SrvTest, controlChannelNegative) {
     std::string response;
 
     sendUnixCommand("{ \"command\": \"bogus\" }", response);
-    EXPECT_EQ("{ \"result\": 1,"
+    EXPECT_EQ("{ \"result\": 2,"
               " \"text\": \"'bogus' command not supported.\" }", response);
 
     sendUnixCommand("utter nonsense", response);
index c20fb8028cea7bf5b481b3af65d38519165bd007..cd445c18f40e81102f22509d57e02fd5e6e3297d 100644 (file)
@@ -780,7 +780,7 @@ TEST_F(CtrlChannelDhcpv6SrvTest, controlChannelNegative) {
     std::string response;
 
     sendUnixCommand("{ \"command\": \"bogus\" }", response);
-    EXPECT_EQ("{ \"result\": 1,"
+    EXPECT_EQ("{ \"result\": 2,"
               " \"text\": \"'bogus' command not supported.\" }", response);
 
     sendUnixCommand("utter nonsense", response);