Skip to content

Commit

Permalink
Merge pull request #536 from MarkEWaite/increase-windows-file-system-…
Browse files Browse the repository at this point in the history
…offset

Allow up to 4 second time offset in Windows file system
  • Loading branch information
MarkEWaite authored Oct 5, 2017
2 parents d5cc48d + 3c2ef06 commit 7229864
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void lastModified_Smokes() throws Exception {
SCMRevision revision = source.fetch(new SCMHead("dev"), null);
sampleRepo.write("file", "modified");
sampleRepo.git("commit", "--all", "--message=dev");
final long fileSystemAllowedOffset = isWindows() ? 3000 : 1500;
final long fileSystemAllowedOffset = isWindows() ? 4000 : 1500;
SCMFileSystem fs = SCMFileSystem.of(source, new SCMHead("dev"), revision);
long currentTime = isWindows() ? System.currentTimeMillis() / 1000L * 1000L : System.currentTimeMillis();
long lastModified = fs.lastModified();
Expand Down

0 comments on commit 7229864

Please sign in to comment.