Skip to content

Commit 132a78d

Browse files
committed
Fix test
Issue gh-6245
1 parent aa767ec commit 132a78d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2/oauth2-core/src/test/java/org/springframework/security/oauth2/core/converter/ClaimConversionServiceTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void convertInstantWhenInstantThenReturnSame() {
8888

8989
@Test
9090
public void convertInstantWhenDateThenConverts() {
91-
Instant instant = Instant.now();
91+
Instant instant = new Date().toInstant();
9292
assertThat(this.conversionService.convert(Date.from(instant), Instant.class)).isEqualTo(instant);
9393
}
9494

0 commit comments

Comments
 (0)