Skip to content

Commit

Permalink
generate-logictest: add test timeout to BUILD files template
Browse files Browse the repository at this point in the history
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. This patch updates
the template to include a test timeout.

Release justification: Non-production code changes
Release note: None
  • Loading branch information
healthy-pod committed Sep 1, 2022
1 parent 9911916 commit b75d2ee
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 b75d2ee

Please sign in to comment.