Skip to content

Commit

Permalink
Merge pull request #17 from abdullah1308/fortio-update
Browse files Browse the repository at this point in the history
Update fortio version
  • Loading branch information
leecalcote authored Jul 8, 2023
2 parents e323257 + caf9e5f commit 9422b73
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 9422b73

Please sign in to comment.