Skip to content

Commit

Permalink
skip test if experiment not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Dec 5, 2024
1 parent 616be99 commit bd8b099
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/core/util/backoff_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "src/core/lib/experiments/experiments.h"
#include "src/core/util/time.h"
#include "test/core/test_util/test_config.h"

Expand All @@ -51,6 +52,9 @@ TEST(BackOffTest, ConstantBackOff) {
}

TEST(BackOffTest, InitialBackoffCappedByMaxBackoff) {
if (!IsBackoffCapInitialAtMaxEnabled()) {
GTEST_SKIP() << "test requires backoff_cap_initial_at_max experiment";
}
const auto kInitialBackoff = Duration::Seconds(2);
const auto kMaxBackoff = Duration::Seconds(1);
const double kMultiplier = 1.0;
Expand Down

0 comments on commit bd8b099

Please sign in to comment.