Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: avoid conversion failing on some architectures
expires parameter is seconds but time.Hour is: > const ( > Nanosecond Duration = 1 > Microsecond = 1000 * Nanosecond > Millisecond = 1000 * Microsecond > Second = 1000 * Millisecond > Minute = 60 * Second > Hour = 60 * Minute > ) Builds on armel, armhf and i386 failing due to: > github.com/asipto/secsipidx/secsipid_test [github.com/asipto/secsipidx/secsipid.test] > src/github.com/asipto/secsipidx/secsipid/url_cache_test.go:74:48: cannot convert time.Hour (constant 3600000000000 of type time.Duration) to type int > src/github.com/asipto/secsipidx/secsipid/url_cache_test.go:91:48: cannot convert time.Hour (constant 3600000000000 of type time.Duration) to type int > src/github.com/asipto/secsipidx/secsipid/url_cache_test.go:191:48: cannot convert time.Hour (constant 3600000000000 of type time.Duration) to type int
- Loading branch information