Skip to content

Commit fc7cbcb

Browse files
authored
Merge pull request #57 from zonkyio/binary-consistency-windows
#50 adjust last modified thresholds for microsoft windows platform
2 parents 80b3824 + 048cd28 commit fc7cbcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/zonky/test/db/postgres/embedded/EmbeddedPostgres.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ private static File prepareBinaries(PgBinaryResolver pgBinaryResolver, File over
850850
}
851851
}
852852

853-
public static boolean isPgBinReady(File pgDirExists) {
853+
private static boolean isPgBinReady(File pgDirExists) {
854854
if (!pgDirExists.exists()) {
855855
return false;
856856
}
@@ -859,7 +859,7 @@ public static boolean isPgBinReady(File pgDirExists) {
859859
File[] otherFiles = Optional.ofNullable(parentDir.listFiles(file -> !file.equals(pgDirExists))).orElseGet(() -> new File[0]);
860860

861861
long contentLastModified = Stream.of(otherFiles).mapToLong(File::lastModified).max().orElse(Long.MAX_VALUE);
862-
return parentDir.lastModified() <= pgDirExists.lastModified() && contentLastModified <= pgDirExists.lastModified();
862+
return parentDir.lastModified() - 100 <= pgDirExists.lastModified() && contentLastModified <= pgDirExists.lastModified();
863863
}
864864

865865
@Override

0 commit comments

Comments
 (0)