- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for queueIncoming (0.13 sec)
-
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DefaultDaemonConnectionTest.groovy
then: result == failure } def "receive ignores stdin messages"() { when: connection.queueIncoming("incoming1") connection.queueIncoming(new ForwardInput("yo".bytes)) connection.queueIncoming(new CloseInput()) connection.queueIncoming("incoming2") def result = [] result << daemonConnection.receive(20, TimeUnit.SECONDS)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 15 19:51:37 UTC 2024 - 11.7K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MessageHubTest.groovy
hub.addConnection(connection) when: connection.queueIncoming(new ChannelMessage(new ChannelIdentifier("channel 1"), "message 1")) connection.queueIncoming(new ChannelMessage(new ChannelIdentifier("channel 2"), "message 2")) connection.queueIncoming(new ChannelMessage(new ChannelIdentifier("channel 1"), "message 3")) thread.blockUntil.channel1Received
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 21.8K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MessageHubBackedObjectConnectionTest.groovy
def worker = Mock(Worker) def connection = new TestConnection() given: connectCompletion.create(_) >> connection connection.queueIncoming(new ChannelMessage(new ChannelIdentifier(Worker.name), new MethodInvocation(Worker.class.getMethod("doStuff", String), ["param 1"] as Object[]))) when: connectionBuilder.addIncoming(Worker, worker)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 4K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/TestConnection.groovy
def message = incoming.take() return message == END ? null : (InterHubMessage) message } /** * Queues the given message to return from {@link #receive()}. */ void queueIncoming(InterHubMessage message) { incoming.put(message) } /** * Marks the end of the incoming messages. */ @Override void stop() { incoming.put(END) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 1.8K bytes - Viewed (0)