oauth2/google
Cody Oss d3ed0bb246 google/internal/externalaccount: fix flaky tests
It seems like these handful of test would fail because of issues
related to timings. When running the tests there was sometimes a
second scew from when the subjectToken got and want were calculated.
Switched them all to use a static clock so the time portion will
never differ.

Fixes golang/go#49339

Change-Id: Ia2e4e140526ee1fc37fa9d24765cd8ec3033ea22
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/361354
Trust: Cody Oss <codyoss@google.com>
Run-TryBot: Cody Oss <codyoss@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2021-11-04 18:04:15 +00:00
..
downscope google/downscope: return body in error message 2021-08-19 19:09:43 +00:00
internal/externalaccount google/internal/externalaccount: fix flaky tests 2021-11-04 18:04:15 +00:00
testdata/gcloud google: Use new endpoints for Google authentication 2019-02-26 19:11:47 +00:00
appengine.go all: use stdlib context instead of x/net/context 2018-11-01 16:01:52 +00:00
appengine_gen1.go all: go fmt ./... 2021-02-20 00:06:19 +00:00
appengine_gen2_flex.go all: go fmt ./... 2021-02-20 00:06:19 +00:00
default.go google: Add support for CredentialsParams, Client ID json, and JWT Subject 2021-04-27 18:04:40 +00:00
doc.go google: add external account documentation 2021-06-22 21:54:36 +00:00
example_test.go google: Support scopes for ComputeTokenSource 2019-04-02 18:19:05 +00:00
google.go google: add support for "impersonated_service_account" credential type. 2021-10-28 17:52:45 +00:00
google_test.go google: Use new endpoints for Google authentication 2019-02-26 19:11:47 +00:00
jwt.go google: support scopes for JWT access token 2021-06-15 19:07:21 +00:00
jwt_test.go google: support scopes for JWT access token 2021-06-15 19:07:21 +00:00
sdk.go all: use stdlib context instead of x/net/context 2018-11-01 16:01:52 +00:00
sdk_test.go internal: move ParseINI into google 2018-01-02 15:01:02 +00:00