Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for completesWithin (0.1 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

         */
        void completed()
    
        /**
         * Blocks until this action has completed. Asserts that the action completes within the specified time. Rethrows any exception from the action.
         */
        void completesWithin(long maxWaitValue, TimeUnit maxWaitUnits)
    
        /**
         * Blocks until this action has completed. Asserts that the action completes before the given time. Rethrows any exception from the action.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/util/ConcurrentSpecificationTest.groovy

            when:
            def timedOut = false
            def action = start {
                timedOut = condition.waitUntilComplete(200)
            }
            action.completesWithin(200, TimeUnit.MILLISECONDS)
    
            then:
            timedOut
        }
    
        @FailsWith(TestException)
        def "finish rethrows exception thrown by test thread"() {
            Runnable action = Mock()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 07 08:18:50 UTC 2021
    - 10.5K bytes
    - Viewed (0)
Back to top