Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for expectBlocksUntil (0.19 sec)

  1. subprojects/core/src/test/groovy/org/gradle/util/internal/DisconnectableInputStreamTest.groovy

                syncAt(1)
                return expected.length
            }
    
            def instr = new DisconnectableInputStream(source, toActionExecuter(executorFactory))
            run {
                expectBlocksUntil(1) {
                    assertReads(instr, "some text")
                }
            }
    
            instr.close()
        }
    
        @Test
        void readBlocksUntilInputStreamIsClosed() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 07 08:18:46 UTC 2021
    - 8.5K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

     *
     * <p>Provides an {@link java.util.concurrent.Executor} implementation, which uses test threads to execute any tasks
     * submitted to it.</p>
     *
     * <p>You can use {@link #syncAt(int)} and {@link #expectBlocksUntil(int, groovy.lang.Closure)} to synchronise between
     * test threads.</p>
     */
    public class MultithreadedTestRule extends ExternalResource {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/AsyncDispatchTest.groovy

                parallel.syncAt(1)
    
                dispatch.dispatchTo(target2)
                dispatch.dispatch('message2')
                parallel.syncAt(2)
    
                parallel.expectBlocksUntil(3) {
                    dispatch.stop()
                }
            }
    
            then:
            target1.receivedMessages == ['message1']
            target2.receivedMessages == ['message2']
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.5K bytes
    - Viewed (0)
Back to top