Skip to content

armgit / hey

Public Imported from GitHub
0

HTTP load generator, ApacheBench (ab) replacement

Go

Exit on SIGINT

Burcu Dogan3f2c4fe3e56b
diff --git a/boomer/boomer.go b/boomer/boomer.go
index 25af429..8dccfa0 100644
--- a/boomer/boomer.go
+++ b/boomer/boomer.go
@@ -117,6 +117,7 @@ func (b *Boomer) Run() {
<-c
// TODO(jbd): Progress bar should not be finalized.
newReport(b.N, b.results, b.Output, time.Now().Sub(start)).finalize()
+ os.Exit(1)
}()
b.runWorkers()