[http2] Only run http2_stats test if http2_stats_fix experiment is enabled (#34833)

pull/34862/head
Yash Tibrewal 1 year ago committed by GitHub
parent 54f65e0dbd
commit 609e96446a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      test/core/end2end/tests/http2_stats.cc

@ -36,6 +36,7 @@
#include "src/core/lib/channel/promise_based_filter.h"
#include "src/core/lib/channel/tcp_tracer.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/experiments/experiments.h"
#include "src/core/lib/gprpp/notification.h"
#include "src/core/lib/gprpp/sync.h"
#include "src/core/lib/gprpp/time.h"
@ -206,6 +207,9 @@ class FakeServerCallTracerFactory : public ServerCallTracerFactory {
// This test verifies the HTTP2 stats on a stream
CORE_END2END_TEST(Http2FullstackSingleHopTest, StreamStats) {
if (!IsHttp2StatsFixEnabled()) {
GTEST_SKIP() << "Test needs http2_stats_fix experiment to be enabled";
}
g_mu = new Mutex();
g_client_call_ended_notify = new Notification();
g_server_call_ended_notify = new Notification();

Loading…
Cancel
Save