summaryrefslogtreecommitdiffstats
path: root/src/lib/asiolink/tests/interval_timer_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/asiolink/tests/interval_timer_unittest.cc')
-rw-r--r--src/lib/asiolink/tests/interval_timer_unittest.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/asiolink/tests/interval_timer_unittest.cc b/src/lib/asiolink/tests/interval_timer_unittest.cc
index 54da9f8935..957486e253 100644
--- a/src/lib/asiolink/tests/interval_timer_unittest.cc
+++ b/src/lib/asiolink/tests/interval_timer_unittest.cc
@@ -154,8 +154,7 @@ TEST_F(IntervalTimerTest, invalidArgumentToIntervalTimer) {
// expect throw if call back function is empty
EXPECT_THROW(itimer.setup(IntervalTimer::Callback(), 1),
isc::InvalidParameter);
- // expect throw if interval is not greater than 0
- EXPECT_THROW(itimer.setup(TimerCallBack(this), 0), isc::BadValue);
+ // expect throw if interval is negative.
EXPECT_THROW(itimer.setup(TimerCallBack(this), -1), isc::BadValue);
}