Skip to content

Commit

Permalink
Skip unstable test ThrottedTaskRunnerTest.testExecutionOrder() on Mac…
Browse files Browse the repository at this point in the history
  • Loading branch information
kwin authored Jan 11, 2022
1 parent 8a9aad2 commit 2f0047c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com)

### Changed

- #2767 - ThrottledTaskRunnerTest.testExecutionOrder unstable on Mac OS
- #2261 - Update to latest mocking libraries
- #2753 - Update to AEM 6.4 dependencies
- #2754 - Support building with Java 17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@
import java.util.Collections;
import java.util.List;
import javax.management.NotCompliantMBeanException;

import org.apache.commons.lang3.SystemUtils;
import org.apache.sling.testing.mock.osgi.junit.OsgiContext;
import org.junit.Rule;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeFalse;

public class ThrottledTaskRunnerTest {

Expand All @@ -41,6 +44,7 @@ public class ThrottledTaskRunnerTest {

@Test
public void testExecutionOrderOverflow() throws NotCompliantMBeanException, InterruptedException {
assumeFalse("Test unstable on Mac OS, skipping execution on that OS!", SystemUtils.IS_OS_MAC);
ThrottledTaskRunner ttr = osgiContext.registerService(new ThrottledTaskRunnerImpl());

List<Long> executions = Collections.synchronizedList(new ArrayList<>());
Expand Down

0 comments on commit 2f0047c

Please sign in to comment.