From: Tomek Mrugalski Date: Wed, 28 Jan 2015 14:06:17 +0000 (+0100) Subject: [2949] Final tweaks in inf-request tests. X-Git-Tag: trac3712_base~23^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1a3ec00872eda62a185d0fc12d99150cbd896be;p=thirdparty%2Fkea.git [2949] Final tweaks in inf-request tests. --- diff --git a/src/bin/dhcp6/tests/infrequest_unittest.cc b/src/bin/dhcp6/tests/infrequest_unittest.cc index 64fdea886e..9c4fdbc334 100644 --- a/src/bin/dhcp6/tests/infrequest_unittest.cc +++ b/src/bin/dhcp6/tests/infrequest_unittest.cc @@ -86,7 +86,7 @@ const char* CONFIGS[] = { "\"rebind-timer\": 2000, " "\"renew-timer\": 1000, " " \"option-data\": [ {" - " \"name\": \"sip-server-dns\"," + " \"name\": \"sip-server-addr\"," " \"data\": \"2001:db8::1\"" " } ]," "\"subnet6\": [ { " @@ -259,7 +259,7 @@ TEST_F(InfRequestTest, infRequestSubnetAndGlobal) { Option6AddrLstPtr dns = boost::dynamic_pointer_cast (response->getOption(D6O_NAME_SERVERS)); ASSERT_TRUE(dns); - addrs = sip->getAddresses(); + addrs = dns->getAddresses(); ASSERT_EQ(1, addrs.size()); EXPECT_EQ("2001:db8::2", addrs[0].toText()); } @@ -291,7 +291,7 @@ TEST_F(InfRequestTest, infRequestNoSubnets) { Option6AddrLst::AddressContainer addrs = nis->getAddresses(); ASSERT_EQ(2, addrs.size()); EXPECT_EQ("2001:db8::1", addrs[0].toText()); - EXPECT_EQ("2001:db8::2", addrs[0].toText()); + EXPECT_EQ("2001:db8::2", addrs[1].toText()); }