Currently I am using the following command for running my test with timeout value given during test call.
go test myModule -run TestSanity -v --race
-timeout 10h
Is there a way in Golang testing module to set it during program execution. Something like,
func TestMain(m *testing.M) {
// customTimeout = "10h"
// m.Timeout(customTimeout) <--- Something like this
code := m.Run()
os.Exit(code)
}