1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 02:04:27 +00:00
Dennis Menschel 9c0a374f3f Fix integer constant overflows in tests (#4616)
* Use integer limit value [1] instead of hard-coded magic constant for
  NonexistentID.

* Explicitly use int64 in order to avoid the following errors on 32 bit
  architectures:

  # code.gitea.io/gitea/integrations
  ./api_admin_test.go:50:34: constant 9223372036854775807 overflows int
  ./api_token_test.go:47:34: constant 9223372036854775807 overflows int
  [...]
  # code.gitea.io/gitea/models
  ./action_test.go:179:15: constant 9223372036854775807 overflows int

[1] https://golang.org/pkg/math/#pkg-constants

Signed-off-by: Dennis Menschel <menschel-d@posteo.de>
2018-08-06 14:52:53 +03:00
..
2018-03-06 09:22:16 +08:00
2017-05-26 09:38:18 +08:00
2017-05-04 13:54:56 +08:00
2018-03-13 10:03:55 +08:00
2018-05-09 19:29:04 +03:00
2018-05-09 19:29:04 +03:00
2018-05-21 10:28:29 +08:00
2018-01-27 18:48:15 +02:00
2014-04-13 03:14:43 -04:00
2017-10-27 09:10:54 +03:00
2018-05-19 17:12:37 +03:00
2018-05-19 17:12:37 +03:00
2018-07-26 19:38:55 +03:00