summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/tests/random_allocator_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dhcpsrv/tests/random_allocator_unittest.cc')
-rw-r--r--src/lib/dhcpsrv/tests/random_allocator_unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/tests/random_allocator_unittest.cc b/src/lib/dhcpsrv/tests/random_allocator_unittest.cc
index 55fec78d2f..e8009eed3a 100644
--- a/src/lib/dhcpsrv/tests/random_allocator_unittest.cc
+++ b/src/lib/dhcpsrv/tests/random_allocator_unittest.cc
@@ -186,8 +186,11 @@ using RandomAllocatorTest6 = AllocEngine6Test;
// Test that the allocator returns the correct type.
TEST_F(RandomAllocatorTest6, getType) {
- RandomAllocator alloc(Lease::TYPE_NA, subnet_);
- EXPECT_EQ("random", alloc.getType());
+ RandomAllocator allocNA(Lease::TYPE_NA, subnet_);
+ EXPECT_EQ("random", allocNA.getType());
+
+ RandomAllocator allocPD(Lease::TYPE_PD, subnet_);
+ EXPECT_EQ("random", allocPD.getType());
}
// Test allocating IPv6 addresses when a subnet has a single pool.