Skip to content

Commit

Permalink
Merge #87299
Browse files Browse the repository at this point in the history
87299: generate-logictest: add test timeout to BUILD files template r=rickystewart a=healthy-pod

In #86363, we added a test.timeout arg to all go_test targets.
When generate-logictest runs out of `bazel-generate.sh`,
logic tests build files are re-created based on the template
that was missing the `test.timeout` arg and since the timeout
script doesn't run, the timeouts get deleted. This patch updates
the template to include a test timeout.

Release justification: Non-production code changes
Release note: None

Co-authored-by: healthy-pod <[email protected]>
  • Loading branch information
craig[bot] and healthy-pod committed Sep 2, 2022
2 parents a4e6669 + b75d2ee commit 49b6501
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/generate-logictest/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test")
go_test(
name = "{{ .TestRuleName }}_test",
size = "enormous",
args = ["-test.timeout=3595s"],
srcs = ["generated_test.go"],
data = [
"//c-deps:libgeos", # keep{{ if .SqliteLogicTest }}
Expand Down

0 comments on commit 49b6501

Please sign in to comment.