Skip to content

Commit

Permalink
Merge pull request #25 from gaunty/master
Browse files Browse the repository at this point in the history
set go test timout to infinite, and use the gauge timeout to prevent indefinite running specs
  • Loading branch information
sriv authored Apr 6, 2020
2 parents 8a68e2a + d6b9464 commit e871c05
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 e871c05

Please sign in to comment.