Skip to content

Commit

Permalink
fix multiple Wait() calls (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwho authored Aug 7, 2021
1 parent 567925f commit 4c30da2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ func getCommandOutput(commandString string) chan float64 {
fmt.Println(lineText)
}
}
cmd.Wait()
if err = cmd.Wait(); nil != err {
log.Fatalf("Error running program: %s, %s", cmd.Path, err)
}
}(reader)
if err := cmd.Run(); nil != err {
if err := cmd.Start(); nil != err {
log.Fatalf("Error running program: %s, %s", cmd.Path, err)
}
return coverageFloatChannel
Expand Down

0 comments on commit 4c30da2

Please sign in to comment.