Use test timeout implied by test size (unless overridden).

Currently, grpc_cc_test with size="large" will still have
timeout="moderate" (which corresponds to medium size test)
because the timeout will be overriden by the default arg.
Fixing as this behavior is very counterintuitive.
pull/17832/head
Jan Tattermusch 6 years ago
parent b5506f0ee4
commit cc6ef78972
  1. 2
      bazel/grpc_build_system.bzl

@ -132,7 +132,7 @@ def grpc_proto_library(
generate_mocks = generate_mocks,
)
def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data = [], uses_polling = True, language = "C++", size = "medium", timeout = "moderate", tags = [], exec_compatible_with = []):
def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data = [], uses_polling = True, language = "C++", size = "medium", timeout = None, tags = [], exec_compatible_with = []):
copts = []
if language.upper() == "C":
copts = if_not_windows(["-std=c99"])

Loading…
Cancel
Save