Skip to content

Commit

Permalink
Merge pull request #7 from AppsFlyer/go-upgrade
Browse files Browse the repository at this point in the history
upgrade go version to 1.16, and improve test stability
  • Loading branch information
haski committed Aug 16, 2021
2 parents a68c39f + 3864537 commit aa3ea7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -16,4 +16,4 @@ script:
- make
# - make testflags="-race"
# submit to goveralls only on the latest version to avoid timeouts
- if [[ $TRAVIS_GO_VERSION == 1.13* ]]; then $GOPATH/bin/goveralls -service=travis-ci; fi
- if [[ $TRAVIS_GO_VERSION == 1.16* ]]; then $GOPATH/bin/goveralls -service=travis-ci; fi
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/AppsFlyer/wrk3

go 1.15
go 1.16

require (
github.com/HdrHistogram/hdrhistogram-go v1.1.0
Expand Down
3 changes: 2 additions & 1 deletion wrk3_test.go
Expand Up @@ -170,7 +170,8 @@ func TestSummarizeResults(t *testing.T) {
assert.Equal(t, 0, result.Errors, "errors")
assert.Equal(t, expectedResults, result.Counter, "count")
assert.Equal(t, expectedResults, int(result.Latency.TotalCount()), "histogram counter")
assert.Equal(t, expectedLatency, time.Duration(result.Latency.Min()).Truncate(time.Millisecond), "histogram min time")
assert.LessOrEqual(t, expectedLatency, time.Duration(result.Latency.Min()).Truncate(time.Millisecond), "histogram min time")
assert.GreaterOrEqual(t, expectedLatency*3, time.Duration(result.Latency.Min()), "histogram min time")
}

func configureExecutioner(eventCount int, requestFunc RequestFunc) *executioner {
Expand Down

0 comments on commit aa3ea7d

Please sign in to comment.