[api_fuzzer] Fix timeout case (#30578)

pull/30599/head
Craig Tiller 2 years ago committed by GitHub
parent 793d0d15c8
commit 1ed09bd6dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      test/core/end2end/fuzzers/api_fuzzer.cc
  2. 49
      test/core/end2end/fuzzers/api_fuzzer_corpus/timeout-36dbe33cfc4d07ab5c01f283c901ee35bc6de2fd

@ -81,8 +81,7 @@
// IWYU pragma: no_include <google/protobuf/repeated_ptr_field.h>
// Applicable when simulating channel actions. Prevents overflows.
static constexpr uint64_t kMaxWaitMs =
31536000000; // 1 year (24 * 365 * 3600 * 1000)
static constexpr uint64_t kMaxWaitMs = grpc_core::Duration::Hours(1).millis();
// Applicable when simulating channel actions. Prevents overflows.
static constexpr uint64_t kMaxAddNReadableBytes = (2 * 1024 * 1024); // 2GB
// Applicable when simulating channel actions. Prevents overflows.

@ -0,0 +1,49 @@
actions {
create_server {
}
}
actions {
create_channel {
target: "unix::peht046,,\343\236\2349,Sac,,t"
channel_actions {
add_n_bytes_readable: 89
wait_ms: 35195367205109760
}
channel_actions {
add_n_bytes_writable: 31769
add_n_bytes_readable: 35195367205109760
}
channel_actions {
wait_ms: 20
}
}
}
actions {
create_call {
propagation_mask: 9869440
method {
value: "v"
}
timeout: 100000000
}
}
actions {
queue_batch {
operations {
send_initial_metadata {
metadata {
key {
value: "grpc-tags-bin"
}
value {
value: "unix::peht046,,\343\236\2349,Sac,,t"
}
}
}
}
}
}
actions {
}
actions {
}
Loading…
Cancel
Save