Skip to content

Commit

Permalink
Fixed some precision issues that were causing test failures in newer …
Browse files Browse the repository at this point in the history
…JDKs.
  • Loading branch information
jchambers committed May 9, 2020
1 parent ec415b9 commit 457d29a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ void testSendNotificationWithExpiredDeviceToken(final boolean useTokenAuthentica

assertFalse(response.isAccepted());
assertEquals("Unregistered", response.getRejectionReason());
assertEquals(expiration, response.getTokenInvalidationTimestamp());
assertEquals(expiration.toEpochMilli(), response.getTokenInvalidationTimestamp().toEpochMilli());
} finally {
client.close().get();
server.shutdown().get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void fromMap() {
final ErrorResponse errorResponse = ErrorResponse.fromMap(errorResponseMap);

assertEquals(reason, errorResponse.getReason());
assertEquals(timestamp, errorResponse.getTimestamp());
assertEquals(timestamp.toEpochMilli(), errorResponse.getTimestamp().toEpochMilli());
}

{
Expand Down

0 comments on commit 457d29a

Please sign in to comment.