[channel_init] Add grpc_init/shutdown to one test that sometimes needs it (#37050)

This test very occasionally needs to have gRPC initialized, so adding the init/shutdown scope just where it's needed.

Closes #37050

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37050 from ctiller:ci 4baad7af76
PiperOrigin-RevId: 646586430
pull/37062/head
Craig Tiller 7 months ago committed by Copybara-Service
parent 958bc76658
commit fb504f1514
  1. 1
      test/core/surface/channel_init_test.cc

@ -317,6 +317,7 @@ const NoInterceptor TestFilter1::Call::OnServerToClientMessage;
const NoInterceptor TestFilter1::Call::OnFinalize;
TEST(ChannelInitTest, CanCreateFilterWithCall) {
grpc::testing::TestGrpcScope g;
ChannelInit::Builder b;
b.RegisterFilter<TestFilter1>(GRPC_CLIENT_CHANNEL);
auto init = b.Build();

Loading…
Cancel
Save