Commit 2cd7de7f authored by Yoshitaka Aharen's avatar Yoshitaka Aharen
Browse files

[trac510] fix tests in src/bin/auth

parent 1468dd9e
...@@ -156,8 +156,9 @@ TEST_F(AuthCountersTest, incrementTCPCounter) { ...@@ -156,8 +156,9 @@ TEST_F(AuthCountersTest, incrementTCPCounter) {
} }
TEST_F(AuthCountersTest, incrementInvalidCounter) { TEST_F(AuthCountersTest, incrementInvalidCounter) {
// Expect to die. // Expect to throw an isc::OutOfRange
EXPECT_DEATH(counters.inc(AuthCounters::SERVER_COUNTER_TYPES), "Assertion.+failed"); EXPECT_THROW(counters.inc(AuthCounters::SERVER_COUNTER_TYPES),
isc::OutOfRange);
} }
TEST_F(AuthCountersTest, submitStatisticsWithoutSession) { TEST_F(AuthCountersTest, submitStatisticsWithoutSession) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment