jdk/test/java/time/tck/java/time/TCKLocalDateTime.java
changeset 28765 8878e8455f2a
parent 22108 99859c0e9a33
child 30039 7f5a75df6e5f
--- a/jdk/test/java/time/tck/java/time/TCKLocalDateTime.java	Wed Jan 28 09:23:41 2015 +0100
+++ b/jdk/test/java/time/tck/java/time/TCKLocalDateTime.java	Wed Jan 28 17:48:59 2015 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -292,7 +292,8 @@
             expected = LocalDateTime.now(Clock.system(zone));
             test = LocalDateTime.now(zone);
         }
-        assertEquals(test, expected);
+        assertEquals(test.truncatedTo(ChronoUnit.SECONDS),
+                     expected.truncatedTo(ChronoUnit.SECONDS));
     }
 
     //-----------------------------------------------------------------------