Skip to content

Commit

Permalink
tools/check: add 2min timeout for each test function (pingcap#32208)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao authored Feb 9, 2022
1 parent 9c29e0c commit 3994bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/check/ut.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ func (n *numa) testCommand(pkg string, fn string, old bool) *exec.Cmd {
args = append(args, "-test.coverprofile", tmpFile)
}
args = append(args, "-test.cpu", "1")
// args = append(args, []string{"-test.timeout", "20s"}...)
args = append(args, []string{"-test.timeout", "2m"}...)
if old {
// session.test -test.run '^TestT$' -check.f testTxnStateSerialSuite.TestTxnInfoWithPSProtoco
args = append(args, "-test.run", "^TestT$", "-check.f", fn)
Expand Down

0 comments on commit 3994bb6

Please sign in to comment.