[call] Fix fuzzer found bug in client_call_test (#36848)

FuzzingEventEngine can add some big arbitrary delays -- account for that.

Closes #36848

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36848 from ctiller:f-cc af18b7a0cd
PiperOrigin-RevId: 641281105
pull/35272/head
Craig Tiller 9 months ago committed by Copybara-Service
parent 322ef09202
commit b3de112b15
  1. 5
      test/core/call/client_call_test.cc
  2. 1
      test/core/call/yodel/fuzzer_main.cc
  3. 1
      test/core/call/yodel/test_main.cc
  4. 2
      test/core/call/yodel/yodel_test.cc
  5. 2
      test/core/call/yodel/yodel_test.h

@ -98,7 +98,10 @@ class ClientCallTest : public YodelTest {
return;
}
expectations_ = 0;
cq_verifier_->Verify(timeout.value_or(Duration::Seconds(10)), whence);
cq_verifier_->Verify(
timeout.value_or(g_yodel_fuzzing ? Duration::Minutes(5)
: Duration::Seconds(10)),
whence);
}
CallHandler& handler() {

@ -35,6 +35,7 @@
bool squelch = true;
DEFINE_PROTO_FUZZER(const transport_test_suite::Msg& msg) {
grpc_core::g_yodel_fuzzing = true;
static const grpc_core::NoDestruct<
std::vector<grpc_core::yodel_detail::TestRegistry::Test>>
tests{grpc_core::yodel_detail::TestRegistry::AllTests()};

@ -19,6 +19,7 @@
#include "test/core/test_util/test_config.h"
int main(int argc, char** argv) {
grpc_core::g_yodel_fuzzing = false;
grpc::testing::TestEnvironment env(&argc, argv);
absl::BitGen bitgen;
::testing::InitGoogleTest(&argc, argv);

@ -27,6 +27,8 @@
namespace grpc_core {
bool g_yodel_fuzzing;
namespace yodel_detail {
TestRegistry* TestRegistry::root_ = nullptr;

@ -37,6 +37,8 @@ namespace grpc_core {
class YodelTest;
extern bool g_yodel_fuzzing;
namespace yodel_detail {
// Capture the name and location of a test step.

Loading…
Cancel
Save