Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fc7cbcb

Browse filesBrowse 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
Copy full SHA for fc7cbcb

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/io/zonky/test/db/postgres/embedded/EmbeddedPostgres.java
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.