[flake] Fix flake in connection_refused_test (#37728)

Increase deadline in the case that we don't expect a deadline to hit (it expired too early in https://btx.cloud.google.com/invocations/55447722-0454-44b4-bd96-9f1604d8e02c/targets/%2F%2Ftest%2Fcore%2Fend2end:connection_refused_test;config=213e6770efdd9d7e0a9867560d39d4ea0067b835bad2334b239f96b3b6b502ba/log, but two seconds is actually kind of tight here).

Closes #37728

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37728 from ctiller:flake-fightas-8 7a5378b8e7
PiperOrigin-RevId: 674894511
pull/37732/head
Craig Tiller 5 months ago committed by Copybara-Service
parent 536bbbf181
commit db09bbeb82
  1. 3
      test/core/end2end/connection_refused_test.cc

@ -86,7 +86,8 @@ static void run_test(bool wait_for_ready, bool use_service_config) {
chan = grpc_channel_create(addr.c_str(), creds, args);
grpc_channel_credentials_release(creds);
grpc_slice host = grpc_slice_from_static_string("nonexistant");
gpr_timespec deadline = grpc_timeout_seconds_to_deadline(2);
gpr_timespec deadline =
grpc_timeout_seconds_to_deadline(wait_for_ready ? 2 : 600);
call =
grpc_channel_create_call(chan, nullptr, GRPC_PROPAGATE_DEFAULTS, cq,
grpc_slice_from_static_string("/service/method"),

Loading…
Cancel
Save