Skip to content

Commit 4143a4d

Browse files
committed
nighthawk run success
Signed-off-by: Kush Trivedi <kushthedude@gmail.com>
1 parent ec19dbd commit 4143a4d

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

apinighthawk/nighthawk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func NighthawkRun(config *NighthawkConfig) ([]byte, error) {
5252
"--concurrency "+c,
5353
"--duration "+duration,
5454
rURL.String(),
55-
"--output-format fortio").Output()
55+
"--output-format experimental_fortio_pedantic").Output()
5656

5757
if err != nil {
5858
msg := "Unable to run load-test"

cmd/main.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package main
22

33
import (
4-
"fmt"
5-
"os"
64
"encoding/json"
5+
"os"
76

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

22-
// Output to only for logs above warn level
23-
log.SetLevel(log.WarnLevel)
21+
// // Output to only for logs above warn level
22+
// log.SetLevel(log.WarnLevel)
2423
}
2524
func main() {
2625
// Duration in seconds nighthawk default format
@@ -39,8 +38,8 @@ func main() {
3938
log.Fatal(err)
4039
}
4140

42-
fmt.Print(string(result))
43-
// res1 := string(result)
41+
// fmt.Print(string(result))
42+
// // res1 := string(result)
4443

4544
var result1 periodic.RunnerResults
4645
// var bd []byte
@@ -66,7 +65,6 @@ func main() {
6665
log.Fatal(err)
6766
}
6867

69-
log.Debugf("Mapped version of the test: %+#v", resultsMap)
70-
68+
log.Infof("Mapped version of the test: %+#v", resultsMap)
7169

7270
}

0 commit comments

Comments
 (0)