[api-fuzzer] fix flipped conditional (#34604)

We've been inadvertently not creating channels with API fuzzer for a bit
pull/34580/head
Craig Tiller 1 year ago committed by GitHub
parent 7fabc61f07
commit 8eeb71cf82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      test/core/end2end/fuzzers/api_fuzzer.cc

@ -739,7 +739,7 @@ int force_experiments = []() {
grpc_core::ForceEnableExperiment("event_engine_listener", true);
return 1;
}();
}
} // namespace
ApiFuzzer::ApiFuzzer()
: engine_(std::dynamic_pointer_cast<FuzzingEventEngine>(
@ -850,7 +850,7 @@ ApiFuzzer::Result ApiFuzzer::PollCq() {
}
ApiFuzzer::Result ApiFuzzer::CreateChannel(
const api_fuzzer::CreateChannel& create_channel) {
if (channel_ == nullptr) return Result::kComplete;
if (channel_ != nullptr) return Result::kComplete;
// ExecCtx is needed for ChannelArgs destruction.
grpc_core::ExecCtx exec_ctx;
grpc_core::testing::FuzzingEnvironment fuzzing_env;

Loading…
Cancel
Save