I'm currently running a suite of tests in Go using the go test ./... command. This suite contains multiple test functions, and the execution time exceeds 10 minutes. Unfortunately, the go test command is triggering a timeout error after the 10-minute mark.
I want to avoid using the --timeout flag to set a custom timeout value because I'm actively adding more test cases, and the required timeout value may change over time.
Is there a way to entirely disable the timeout feature in the go test command, or can it be set to an unlimited value?
Thank you.
Using
0for the timeout allows the tests to run forever:This is documented at go command: Testing flags: