diff --git a/pushy/src/test/java/com/eatthepath/pushy/apns/ApnsClientTest.java b/pushy/src/test/java/com/eatthepath/pushy/apns/ApnsClientTest.java index 72f29d54f..8745ffa2c 100644 --- a/pushy/src/test/java/com/eatthepath/pushy/apns/ApnsClientTest.java +++ b/pushy/src/test/java/com/eatthepath/pushy/apns/ApnsClientTest.java @@ -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(); diff --git a/pushy/src/test/java/com/eatthepath/pushy/apns/ErrorResponseTest.java b/pushy/src/test/java/com/eatthepath/pushy/apns/ErrorResponseTest.java index c02575388..bf6772d30 100644 --- a/pushy/src/test/java/com/eatthepath/pushy/apns/ErrorResponseTest.java +++ b/pushy/src/test/java/com/eatthepath/pushy/apns/ErrorResponseTest.java @@ -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()); } {