From d6b94647497a114c84ca79df4d24a67d15dbe072 Mon Sep 17 00:00:00 2001 From: gaunty Date: Fri, 3 Apr 2020 10:53:34 +0000 Subject: [PATCH] set go test timout to infinite, and use the gauge timeout to prevent indefinite running specs Signed-off-by: gaunty --- gauge/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gauge/builder.go b/gauge/builder.go index 0d0c665..992bddc 100644 --- a/gauge/builder.go +++ b/gauge/builder.go @@ -49,7 +49,7 @@ func LoadGaugeImpls(projectRoot string) error { genGaugeTestFileContents(f, b.String(), vendorPackages) f.Close() // Scan gauge methods - if err := util.RunCommand(os.Stdout, os.Stdout, constants.CommandGo, "test", "-v", gaugeGoMainFile); err != nil { + if err := util.RunCommand(os.Stdout, os.Stdout, constants.CommandGo, "test", "-timeout", "0", "-v", gaugeGoMainFile); err != nil { return fmt.Errorf("Failed to compile project: %s\nPlease ensure the project is in GOPATH.\n", err.Error()) } return nil