]> git.ipfire.org Git - thirdparty/kea.git/commit
[#597,!323] Use round() when calculating T1/T2 to ensure consistent results 597-teetest-calculatetimers-unittest-failing
authorThomas Markwalder <tmark@isc.org>
Tue, 14 May 2019 19:42:34 +0000 (15:42 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 15 May 2019 17:19:51 +0000 (13:19 -0400)
commit8f1fb501d6e307d8f878bdbee5cf574ecf0a4c2f
treeb993dcc87eca8ef56dcdf908705dd1d8b43f1507
parent05b4f388f1d7b2894acba70f10b91bc926ca53b2
[#597,!323] Use round() when calculating T1/T2 to ensure consistent results

src/bin/dhcp4/dhcp4_srv.cc
    Dhcpv4Srv::setTeeTimes() - added use of round()

src/bin/dhcp6/dhcp6_srv.cc
    Dhcpv6Srv::setTeeTimes() - added use of round()

src/bin/dhcp6/tests/dhcp6_test_utils.cc
    Dhcpv6SrvTest::checkIA_NA() - replaced used of
    EXPECTED_EQ with logic to add a failure so callers
    can ASSERT_NO_FATAL_FAILURE and pinpoint the invocation.

src/bin/dhcp6/tests/hooks_unittest.cc
    Wrapped calls to checkIA_NA() with ASSERT_NO_FATAL_FAILURE
    Updated expected T1 values to adjust for use of round().
src/bin/dhcp4/dhcp4_srv.cc
src/bin/dhcp6/dhcp6_srv.cc
src/bin/dhcp6/tests/dhcp6_test_utils.cc
src/bin/dhcp6/tests/hooks_unittest.cc