From: Francis Dupont Date: Tue, 16 Jun 2015 20:55:00 +0000 (+0200) Subject: [3899] Fixed cut & paste which brought Pool6 into Pool4 tests X-Git-Tag: trac3919_base~6^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=567c94d55253cc6375d15873f541cdc13f529c79;p=thirdparty%2Fkea.git [3899] Fixed cut & paste which brought Pool6 into Pool4 tests --- diff --git a/src/lib/dhcpsrv/tests/pool_unittest.cc b/src/lib/dhcpsrv/tests/pool_unittest.cc index 4cf9ced815..342bd7304a 100644 --- a/src/lib/dhcpsrv/tests/pool_unittest.cc +++ b/src/lib/dhcpsrv/tests/pool_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2013,2015 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2012-2013, 2015 Internet Systems Consortium, Inc. ("ISC") // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above @@ -39,15 +39,15 @@ TEST(Pool4Test, constructor_first_last) { EXPECT_EQ(IOAddress("192.0.2.255"), pool1.getLastAddress()); // This is Pool4, IPv6 addresses do not belong here - EXPECT_THROW(Pool6(Lease::TYPE_NA, IOAddress("2001:db8::1"), + EXPECT_THROW(Pool4(IOAddress("2001:db8::1"), IOAddress("192.168.0.5")), BadValue); - EXPECT_THROW(Pool6(Lease::TYPE_NA, IOAddress("192.168.0.2"), + EXPECT_THROW(Pool4(IOAddress("192.168.0.2"), IOAddress("2001:db8::1")), BadValue); // Should throw. Range should be 192.0.2.1-192.0.2.2, not // the other way around. - EXPECT_THROW(Pool6(Lease::TYPE_NA, IOAddress("192.0.2.2"), - IOAddress("192.0.2.1")), BadValue); + EXPECT_THROW(Pool4(IOAddress("192.0.2.2"), IOAddress("192.0.2.1")), + BadValue); } TEST(Pool4Test, constructor_prefix_len) {