dex/server
Eric Chiang 5c602d36d9 server: fix expiry test flake
Ensure compared times are within a second of one another instead of
rounding, which can flake if the two times are different enough to
do round to different values.

Tested using the golang.org/x/tools/cmd/stress tool.

The following set of commands fail without this patch:

    $ go get golang.org/x/tools/cmd/stress
    $ go test -o server.test github.com/coreos/dex/server
    $ stress ./server.test -test.run=TestOAuth2CodeFlow
    219 runs so far, 0 failures
    425 runs so far, 0 failures
    618 runs so far, 0 failures
    802 runs so far, 0 failures
    ^C

Closes #699
2016-11-18 13:47:16 -08:00
..
api.go api: add gRPC definition for version endpoint. 2016-11-14 11:37:48 -08:00
api_test.go api: add gRPC endpoints for creating, updating and deleting passwords 2016-11-01 14:10:35 -07:00
doc.go initial commit 2016-07-26 15:51:24 -07:00
handlers.go server: use seconds instead of nano seconds for expires_in and expiry 2016-11-04 17:00:10 -07:00
handlers_test.go *: fix linting 2016-10-13 18:15:20 -07:00
oauth2.go server: allow extra spaces in scopes 2016-10-12 15:37:12 -07:00
oauth2_test.go initial commit 2016-07-26 15:51:24 -07:00
rotation.go server: rename "rotationStrategy.period" to "rotationFrequency" 2016-10-17 10:57:14 -07:00
rotation_test.go initial commit 2016-07-26 15:51:24 -07:00
server.go *: don't error out if a username doesn't exist in the backing connector 2016-11-01 14:10:55 -07:00
server_test.go server: fix expiry test flake 2016-11-18 13:47:16 -08:00
templates.go *: rename internally used "state" form value to "req" 2016-10-27 10:26:01 -07:00
templates_default.go *: rename internally used "state" form value to "req" 2016-10-27 10:26:01 -07:00
templates_default_gen.go server: generate string literals instead of escaped strings 2016-09-05 18:06:17 -07:00
templates_test.go *: switch dex to the ported templates 2016-09-05 17:25:39 -07:00