Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-563

Fix tests that take a long time to run

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.3.0
    • None
    • Tests
    • None

    Description

      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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            randgalt Jordan Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: