summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomek Mrugalski <tomasz@isc.org>2015-01-28 15:06:17 +0100
committerTomek Mrugalski <tomasz@isc.org>2015-01-28 15:06:17 +0100
commitf1a3ec00872eda62a185d0fc12d99150cbd896be (patch)
treea6d57a6038650536f5e439ecde2a45c3829eeb4c /src
parent[2949] Another unit-tests improvement for inf-request (diff)
downloadkea-f1a3ec00872eda62a185d0fc12d99150cbd896be.tar.xz
kea-f1a3ec00872eda62a185d0fc12d99150cbd896be.zip
[2949] Final tweaks in inf-request tests.
Diffstat (limited to 'src')
-rw-r--r--src/bin/dhcp6/tests/infrequest_unittest.cc6
1 files changed, 3 insertions, 3 deletions
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<Option6AddrLst>
(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());
}