Skip to content

Commit

Permalink
nighthawk run success
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Trivedi <[email protected]>
  • Loading branch information
kushthedude committed Sep 18, 2020
1 parent ec19dbd commit 4143a4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apinighthawk/nighthawk.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NighthawkRun(config *NighthawkConfig) ([]byte, error) {
"--concurrency "+c,
"--duration "+duration,
rURL.String(),
"--output-format fortio").Output()
"--output-format experimental_fortio_pedantic").Output()

if err != nil {
msg := "Unable to run load-test"
Expand Down
14 changes: 6 additions & 8 deletions cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package main

import (
"fmt"
"os"
"encoding/json"
"os"

"github.com/layer5io/nighthawk-go/apinighthawk"
// "fortio.org/fortio/fhttp"
Expand All @@ -19,8 +18,8 @@ func init() {
// Output to stdout instead of the default stderr
log.SetOutput(os.Stdout)

// Output to only for logs above warn level
log.SetLevel(log.WarnLevel)
// // Output to only for logs above warn level
// log.SetLevel(log.WarnLevel)
}
func main() {
// Duration in seconds nighthawk default format
Expand All @@ -39,8 +38,8 @@ func main() {
log.Fatal(err)
}

fmt.Print(string(result))
// res1 := string(result)
// fmt.Print(string(result))
// // res1 := string(result)

var result1 periodic.RunnerResults
// var bd []byte
Expand All @@ -66,7 +65,6 @@ func main() {
log.Fatal(err)
}

log.Debugf("Mapped version of the test: %+#v", resultsMap)

log.Infof("Mapped version of the test: %+#v", resultsMap)

}

0 comments on commit 4143a4d

Please sign in to comment.