Skip to content

Commit a6da989

Browse files
Update google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdTokenCredentialsTest.java
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent df5af9a commit a6da989

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdTokenCredentialsTest.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,7 @@ void caching() throws IOException {
129129
.setIdTokenProvider(mockProvider)
130130
.setTargetAudience("https://foo.bar")
131131
.build();
132-
credentials.clock =
133-
new Clock() {
134-
@Override
135-
public long currentTimeMillis() {
136-
return 1564471451000L; // 2019-07-30T08:24:11Z (STANDARD_ID_TOKEN iat)
137-
}
138-
};
132+
credentials.clock = () -> 1564471451000L; // 2019-07-30T08:24:11Z (STANDARD_ID_TOKEN iat)
139133

140134
credentials.refreshIfExpired();
141135
credentials.refreshIfExpired();

0 commit comments

Comments
 (0)