Skip to content

Commit 71cf706

Browse files
committed
Adjust timestamp precision expectation
1 parent badbb02 commit 71cf706

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modeshape-jcr/src/test/java/org/modeshape/connector/filesystem/FileSystemConnectorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,8 @@ protected void assertFile( Node node,
856856
assertThat(content.getName(), is("jcr:content"));
857857
assertThat(content.getIndex(), is(1));
858858
assertThat(content.getPrimaryNodeType().getName(), is("nt:resource"));
859-
assertThat(content.getProperty("jcr:lastModified").getLong(), is(file.lastModified()));
859+
// Round modified timestamp to seconds so precision matches
860+
assertThat(content.getProperty("jcr:lastModified").getLong() / 1000 * 1000, is(file.lastModified()));
860861
}
861862

862863
private void assertPathNotFound( String path ) throws Exception {

0 commit comments

Comments
 (0)