diff --git a/src/lib/dhcp/tests/option6_ia_unittest.cc b/src/lib/dhcp/tests/option6_ia_unittest.cc index 4e0bda1aab..24f101df7c 100644 --- a/src/lib/dhcp/tests/option6_ia_unittest.cc +++ b/src/lib/dhcp/tests/option6_ia_unittest.cc @@ -109,7 +109,13 @@ TEST_F(Option6IATest, basic) { } TEST_F(Option6IATest, simple) { - Option6IA * ia = new Option6IA(D6O_IA_NA, 1234); + Option6IA* ia = new Option6IA(D6O_IA_NA, 1234); + + // Check that the values are really different than what we are about + // to set them to. + EXPECT_NE(2345, ia->getT1()); + EXPECT_NE(3456, ia->getT2()); + ia->setT1(2345); ia->setT2(3456);