Skip to content

Commit

Permalink
check for Mac OS X
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <[email protected]>
  • Loading branch information
ceki committed Sep 6, 2024
1 parent 00c6f5e commit c45f110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ void waitUntilEmailIsSent() throws InterruptedException {
ExecutorService es = loggerContext.getExecutorService();
es.shutdown();
boolean terminated = es.awaitTermination(TIMEOUT, TimeUnit.MILLISECONDS);

// this assertion may be needlessly strict, skipped on MacOS
System.getProperty("os.name");
if(!terminated && !EnvUtil.isMacOs()) {
fail("executor elapsed before accorded delay " + System.getProperty("os.name"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static public boolean isJaninoAvailable() {

public static boolean isMacOs() {
String os = System.getProperty("os.name");
return os.contains("mac");
return os.toLowerCase().contains("mac");
}

public static boolean isWindows() {
Expand Down

0 comments on commit c45f110

Please sign in to comment.