Skip to content

Commit

Permalink
[api-fuzzer] Fix inproc channels (grpc#35538)
Browse files Browse the repository at this point in the history
Closes grpc#35538

COPYBARA_INTEGRATE_REVIEW=grpc#35538 from ctiller:fff2 52b6996
PiperOrigin-RevId: 597848114
  • Loading branch information
ctiller authored and copybara-github committed Jan 12, 2024
1 parent c5a8e5a commit 02c10df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/core/end2end/fuzzers/api_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ ApiFuzzer::Result ApiFuzzer::CreateChannel(
ChannelArgs args = testing::CreateChannelArgsFromFuzzingConfiguration(
create_channel.channel_args(), fuzzing_env);
if (create_channel.inproc()) {
if (server_ == nullptr) return Result::kFailed;
channel_ = grpc_inproc_channel_create(server_, args.ToC().get(), nullptr);
} else {
grpc_channel_credentials* creds =
Expand Down
5 changes: 5 additions & 0 deletions test/core/end2end/fuzzers/api_fuzzer_corpus/5611761370202112
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
actions {
create_channel {
inproc: true
}
}

0 comments on commit 02c10df

Please sign in to comment.