curator icon indicating copy to clipboard operation
curator copied to clipboard

[CURATOR-563] Fix tests that take a long time to run

Open jira-importer opened this issue 5 years ago • 0 comments

We have some tests that take several minutes. This isn't serving a good purpose and makes the entire test suite take a long time to run. E.g. TestInterProcessSemaphore.testMaxPerSession() takes over 2 minutes on my new MBP.

Look at the output from a recent test run and try to update/eliminate/etc. tests that take a long time.

Some candidates from a recent Travis run:

[INFO] Running org.apache.curator.framework.imps.TestEnabledSessionExpiredState
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 77.809 s - in org.apache.curator.framework.imps.TestEnabledSessionExpiredState

[INFO] Running org.apache.curator.framework.imps.TestWatchesBuilder [INFO] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 125.593 s - in org.apache.curator.framework.imps.TestWatchesBuilder

[INFO] Running org.apache.curator.framework.imps.TestFramework [INFO] Tests run: 35, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 62.262 s - in org.apache.curator.framework.imps.TestFramework

[INFO] Running org.apache.curator.framework.recipes.queue.TestDistributedQueue [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 72.033 s - in org.apache.curator.framework.recipes.queue.TestDistributedQueue

[INFO] Running org.apache.curator.framework.recipes.shared.TestSharedCount [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 72.177 s - in org.apache.curator.framework.recipes.shared.TestSharedCount

[INFO] Running org.apache.curator.framework.recipes.leader.TestLeaderLatch [INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 193.627 s - in org.apache.curator.framework.recipes.leader.TestLeaderLatch

[INFO] Running org.apache.curator.framework.recipes.locks.TestInterProcessSemaphore [INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 232.355 s - in org.apache.curator.framework.recipes.locks.TestInterProcessSemaphore

[INFO] Running org.apache.curator.framework.recipes.locks.TestInterProcessSemaphoreCluster [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 87.917 s - in org.apache.curator.framework.recipes.locks.TestInterProcessSemaphoreCluster

[INFO] Running org.apache.curator.framework.recipes.nodes.TestPersistentEphemeralNode [INFO] Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 143.867 s - in org.apache.curator.framework.recipes.nodes.TestPersistentEphemeralNode

[INFO] Running org.apache.curator.x.async.modeled.TestCachedModeledFramework [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 59.803 s - in org.apache.curator.x.async.modeled.TestCachedModeledFramework


Originally reported by randgalt, imported from: Fix tests that take a long time to run
  • status: Open
  • priority: Major
  • resolution: Unresolved
  • imported: 2025-01-21

jira-importer avatar Mar 15 '20 14:03 jira-importer