Тестовый набор PAX не выполнен - PullRequest
0 голосов
/ 21 апреля 2020

Я запускаю тестовые наборы PAX для проверки некоторых функций, но каждый раз, когда тестовый прогон зависает в определенном месте и после получаса не проходит тестовый прогон.

Как показано ниже:

[shaded.org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider] : Using manager SimpleLocalRepositoryManager with priority 0.0 for C:\Maven\repository Ignored FQCN: shaded.org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory$Slf4jLoggerEx
[org.ops4j.pax.url.mvn.internal.AetherBasedResolver] : Resolved (org.apache.karaf:apache-karaf:zip:4.1.4) as C:\Maven\repository\org\apache\karaf\apache-karaf\4.1.4\apache-karaf-4.1.4.zip
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Log file should not be modified by the test framework
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Found 0 options when requesting OverrideJUnitBundlesOption.class
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : you're trying to add an additional value to a config file; you're current value will be replaced.
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : you're trying to add an additional value to a config file; you're current value will be replaced.
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : you're trying to add an additional value to a config file; you're current value will be replaced.
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Test Container started in 20 millis
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Wait for test container to finish its initialization [ RelativeTimeout value = 14400000 ]
[org.ops4j.pax.exam.rbc.client.RemoteBundleContextClient] : Waiting for remote bundle context.. on 21000 name: bf67ae07-0952-48c8-9cbb-141f337cd0db timout: [ RelativeTimeout value = 14400000 ]
[shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager] : Connection manager is shutting down Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager] : Connection manager shut down Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog

После Ошибка полчаса при сбрасывании сборки, как показано ниже:

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:00 h
[INFO] Finished at: 2020-04-21T20:46:33+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project testcases: There was a timeout or other error in the fork -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Мы используем org.ops4j.pax.exam версии 4.12.0 в нашем проекте.

Предложите мне, как решить эту проблему выдавать и запускать контрольные примеры.

...