Skip to content

Commit

Permalink
Update fortio version
Browse files Browse the repository at this point in the history
Signed-off-by: abdullah1308 <[email protected]>
  • Loading branch information
abdullah1308 committed Jul 8, 2023
1 parent e323257 commit caf9e5f
Show file tree
Hide file tree
Showing 3 changed files with 1,571 additions and 8 deletions.
5 changes: 4 additions & 1 deletion api/gowrk2.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ func TransformWRKToFortio(gowrk *GoWRK2, config *GoWRK2Config) (*fhttp.HTTPRunne

result := &fhttp.HTTPRunnerResults{
// we dont intend to support multiple URLs at the moment
URL: gowrk.URL0,
RunnerResults: periodic.RunnerResults{
StartTime: gowrk.StartTime,
RequestedQPS: gowrk.RequestedQPS,
Expand All @@ -155,6 +154,10 @@ func TransformWRKToFortio(gowrk *GoWRK2, config *GoWRK2Config) (*fhttp.HTTPRunne
},
}

result.HTTPOptions = fhttp.HTTPOptions{
URL: gowrk.URL0,
}

// var countTrkr int64
var windowTrkr float64
for _, p := range gowrk.Percentiles {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/layer5io/gowrk2
go 1.13

require (
fortio.org/fortio v1.3.1
github.com/pkg/errors v0.8.1
fortio.org/fortio v1.57.0
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.4.2
)
Loading

0 comments on commit caf9e5f

Please sign in to comment.