Skip to content

Commit 88f2962

Browse files
committed
[http2] Fix http2_stats test's usage of GlobalPluginStatsRegistry
1 parent 641dbfd commit 88f2962

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/core/end2end/tests/http2_stats.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ CORE_END2END_TEST(Http2FullstackSingleHopTest, StreamStats) {
199199
g_mu = new Mutex();
200200
g_client_call_ended_notify = new CoreEnd2endTest::TestNotification(this);
201201
g_server_call_ended_notify = new CoreEnd2endTest::TestNotification(this);
202+
GlobalStatsPluginRegistryTestPeer::ResetGlobalStatsPluginRegistry();
202203
GlobalStatsPluginRegistry::RegisterStatsPlugin(
203204
std::make_shared<NewFakeStatsPlugin>());
204205
auto send_from_client = RandomSlice(10);
@@ -265,8 +266,6 @@ CORE_END2END_TEST(Http2FullstackSingleHopTest, StreamStats) {
265266
EXPECT_GE(server_transport_stats.incoming.framing_bytes, 32);
266267
EXPECT_LE(server_transport_stats.incoming.framing_bytes, 58);
267268

268-
delete ServerCallTracerFactory::Get(ChannelArgs());
269-
ServerCallTracerFactory::RegisterGlobal(nullptr);
270269
delete g_client_call_ended_notify;
271270
g_client_call_ended_notify = nullptr;
272271
delete g_server_call_ended_notify;

0 commit comments

Comments
 (0)