diff --git a/apinighthawk/nighthawk.go b/apinighthawk/nighthawk.go index 9efdfc44..d7d4d2df 100644 --- a/apinighthawk/nighthawk.go +++ b/apinighthawk/nighthawk.go @@ -34,19 +34,14 @@ func NighthawkRun(config *NighthawkConfig) ([]byte, error) { args := []string{"--rps " + qps, "--connections " + c, + "--concurrency 1", "--duration " + duration, rURL.String(), "--output-format experimental_fortio_pedantic"} log.Info("Received arguments for run", args) - out, err := exec.Command("nighthawk_client", - "--rps "+qps, - "--concurrency 1", - "--connections "+c, - "--duration "+duration, - rURL.String(), - "--output-format experimental_fortio_pedantic").Output() + out, err := exec.Command("nighthawk_client", args...).Output() if err != nil { msg := "Unable to run load-test"