Browse Source

[5078] Corrected expected result in two unit tests.

Marcin Siodelski 8 years ago
parent
commit
5f47e18210

+ 1 - 1
src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc

@@ -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);

+ 1 - 1
src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc

@@ -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);