[Fuzzing] Fix fuzzing timeouts.

Extend Fuzzing timeouts to 1 year since the fuzzing EE caps delays passed to RunAfter to 1 year. This will prevent pre-mature timeouts of some legitimate fuzzed inputs.

Should fix b/358207194

PiperOrigin-RevId: 665012820
pull/37532/head
Vignesh Babu 3 months ago committed by Copybara-Service
parent 41da29972f
commit 531df4b67a
  1. 5
      test/core/call/yodel/yodel_test.cc

@ -130,8 +130,11 @@ class YodelTest::WatchDog {
private: private:
YodelTest* const test_; YodelTest* const test_;
grpc_event_engine::experimental::EventEngine::TaskHandle const timer_{ grpc_event_engine::experimental::EventEngine::TaskHandle const timer_{
// For fuzzing, we'll wait for a year since the fuzzing EE allows delays
// capped to one year for each RunAfter() call. This will prevent
// pre-mature timeouts of some legitimate fuzzed inputs.
test_->state_->event_engine->RunAfter( test_->state_->event_engine->RunAfter(
g_yodel_fuzzing ? Duration::Hours(24) : Duration::Minutes(5), g_yodel_fuzzing ? Duration::Hours(24 * 365) : Duration::Minutes(5),
[this]() { test_->Timeout(); })}; [this]() { test_->Timeout(); })};
}; };

Loading…
Cancel
Save