diff options
author | Francis Dupont <fdupont@isc.org> | 2020-06-02 21:01:32 +0200 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2020-07-27 14:34:15 +0200 |
commit | 3a0d60a502b069ff934994d1de49cc3b5647c12a (patch) | |
tree | d9816991556dd51bdeeab15a2cafa845bc9a8109 /src/bin/dhcp6/tests/classify_unittests.cc | |
parent | [#1248] Reverted last change (diff) | |
download | kea-3a0d60a502b069ff934994d1de49cc3b5647c12a.tar.xz kea-3a0d60a502b069ff934994d1de49cc3b5647c12a.zip |
[#1265] Removed the random index for subnets
Diffstat (limited to 'src/bin/dhcp6/tests/classify_unittests.cc')
-rw-r--r-- | src/bin/dhcp6/tests/classify_unittests.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/dhcp6/tests/classify_unittests.cc b/src/bin/dhcp6/tests/classify_unittests.cc index 70185fc968..51d7e8674e 100644 --- a/src/bin/dhcp6/tests/classify_unittests.cc +++ b/src/bin/dhcp6/tests/classify_unittests.cc @@ -1286,8 +1286,8 @@ TEST_F(ClassifyTest, relayOverrideAndClientClass) { ASSERT_EQ(2, subnets->size()); // Let's get them for easy reference - Subnet6Ptr subnet1 = (*subnets)[0]; - Subnet6Ptr subnet2 = (*subnets)[1]; + Subnet6Ptr subnet1 = *subnets->begin(); + Subnet6Ptr subnet2 = *std::next(subnets->begin()); ASSERT_TRUE(subnet1); ASSERT_TRUE(subnet2); |