tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.51k stars 1.36k forks source link

12.8.4 release: Tests fail with "missing unit in duration 2" #545

Closed anatol closed 1 year ago

anatol commented 4 years ago

I am trying to build vegeta package for Arch Linux using its chroot build environment. The test fails:

==> Starting build()...
go: downloading github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae
go: downloading github.com/mailru/easyjson v0.7.0
go: downloading golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297
go: downloading github.com/tsenart/go-tsz v0.0.0-20180814232043-cdeb9e1e981e
go: downloading github.com/influxdata/tdigest v0.0.0-20180711151920-a7d76c6f093a
go: downloading golang.org/x/text v0.3.2
==> Starting check()...
go: downloading github.com/miekg/dns v1.1.17
go: downloading pgregory.net/rapid v0.3.3
go: downloading github.com/google/go-cmp v0.2.0
go: downloading github.com/alecthomas/jsonschema v0.0.0-20180308105923-f2c93856175a
go: downloading github.com/streadway/quantile v0.0.0-20150917103942-b0c588724d25
go: downloading github.com/dgryski/go-lttb v0.0.0-20180810165845-318fcdf10a77
go: downloading github.com/dgryski/go-gk v0.0.0-20140819190930-201884a44051
go: downloading github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b
go: downloading golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472
go: downloading golang.org/x/sys v0.0.0-20190904154756-749cb33beabd
ok      github.com/tsenart/vegeta/v12   0.003s
?       github.com/tsenart/vegeta/v12/internal/cmd/echosrv  [no test files]
?       github.com/tsenart/vegeta/v12/internal/cmd/jsonschema   [no test files]
ok      github.com/tsenart/vegeta/v12/internal/resolver 0.007s
--- FAIL: TestBuckets_UnmarshalText (0.00s)
    histogram_test.go:52: got: time: invalid duration "", want: time: invalid duration 
    histogram_test.go:52: got: time: missing unit in duration "2", want: time: missing unit in duration 2
FAIL
FAIL    github.com/tsenart/vegeta/v12/lib   2.201s
ok      github.com/tsenart/vegeta/v12/lib/lttb  2.491s
ok      github.com/tsenart/vegeta/v12/lib/plot  1.364s
FAIL
==> ERROR: A failure occurred in check().
tsenart commented 1 year ago

There's an arch linux package now, and this has been fixed. Thanks for reporting.