Skip to content

Commit

Permalink
coverage: exclude a guarddog test from coverage (envoyproxy#18255)
Browse files Browse the repository at this point in the history
This is a clone of envoyproxy#18252 but with the formatting fixed.

Risk Level: None - test only
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Ryan Hamilton <[email protected]>
  • Loading branch information
RyanTheOptimist authored Sep 24, 2021
1 parent 755e288 commit 46ab913
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/server/guarddog_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,8 @@ TEST_P(GuardDogActionsTest, KillShouldTriggerGuardDogActions) {
EXPECT_DEATH(die_function(), "ASSERT_GUARDDOG_ACTION");
}

// Disabled for coverage per #18229
#if !defined(ENVOY_CONFIG_COVERAGE)
TEST_P(GuardDogActionsTest, MultikillShouldTriggerGuardDogActions) {
auto die_function = [&]() -> void {
const NiceMock<Configuration::MockWatchdog> config(DISABLE_MISS, DISABLE_MEGAMISS, DISABLE_KILL,
Expand All @@ -833,6 +835,7 @@ TEST_P(GuardDogActionsTest, MultikillShouldTriggerGuardDogActions) {

EXPECT_DEATH(die_function(), "ASSERT_GUARDDOG_ACTION");
}
#endif

} // namespace
} // namespace Server
Expand Down

0 comments on commit 46ab913

Please sign in to comment.