Skip to content

Commit

Permalink
set go test timout to infinite, and use the gauge timeout to prevent …
Browse files Browse the repository at this point in the history
…indefinite running specs

Signed-off-by: gaunty <[email protected]>
  • Loading branch information
gaunty committed Apr 3, 2020
1 parent 8a68e2a commit d6b9464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gauge/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6b9464

Please sign in to comment.