File tree 2 files changed +2
-2
lines changed
logback-classic-blackbox/src/test/java/ch/qos/logback/classic/blackbox/net
logback-core/src/main/java/ch/qos/logback/core/util
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,8 @@ void waitUntilEmailIsSent() throws InterruptedException {
168
168
ExecutorService es = loggerContext .getExecutorService ();
169
169
es .shutdown ();
170
170
boolean terminated = es .awaitTermination (TIMEOUT , TimeUnit .MILLISECONDS );
171
+
171
172
// this assertion may be needlessly strict, skipped on MacOS
172
- System .getProperty ("os.name" );
173
173
if (!terminated && !EnvUtil .isMacOs ()) {
174
174
fail ("executor elapsed before accorded delay " + System .getProperty ("os.name" ));
175
175
}
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ static public boolean isJaninoAvailable() {
128
128
129
129
public static boolean isMacOs () {
130
130
String os = System .getProperty ("os.name" );
131
- return os .contains ("mac" );
131
+ return os .toLowerCase (). contains ("mac" );
132
132
}
133
133
134
134
public static boolean isWindows () {
You can’t perform that action at this time.
0 commit comments