[
https://issues.apache.org/jira/browse/SLING-11916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert resolved SLING-11916.
------------------------------------
Resolution: Fixed
great [~madamcin], thanks for finding the root cause!
for fixing i've gone the simple way and switched to a single threaded executor
which should be sufficient and easier to manage for the unit test scenario.
i've run the full CI tests on jenkins five times and they always did pass.
https://github.com/apache/sling-org-apache-sling-testing-osgi-mock/commit/52d25d277251676acd322892aeb418107d930660
> osgi-mock: MockEventAdminTest.testPostEvents times out on Jenkins/Windows
> -------------------------------------------------------------------------
>
> Key: SLING-11916
> URL: https://issues.apache.org/jira/browse/SLING-11916
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Reporter: Robert Munteanu
> Assignee: Stefan Seifert
> Priority: Major
> Fix For: Testing OSGi Mock 3.4.0
>
>
> The error is
>
> {noformat}
> [ERROR] org.apache.sling.testing.mock.osgi.MockEventAdminTest.testPostEvents
> Time elapsed: 3.02 s <<< ERROR!
> org.junit.runners.model.TestTimedOutException: test timed out after 3000
> milliseconds
> {noformat}
> and seems to affect both Java 11 and 17.
> https://ci-builds.apache.org/blue/organizations/jenkins/Sling%2Fmodules%2Fsling-org-apache-sling-testing-osgi-mock/detail/PR-27/1/pipeline
> (Java 11, Windows)
> https://ci-builds.apache.org/blue/organizations/jenkins/Sling%2Fmodules%2Fsling-org-apache-sling-testing-osgi-mock/detail/master/229/pipeline
> (Java 17, Windows)
> https://ci-builds.apache.org/blue/organizations/jenkins/Sling%2Fmodules%2Fsling-org-apache-sling-testing-osgi-mock/detail/master/228/pipeline
> (Java 17, Windows)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)