Skip to content

Commit

Permalink
timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Apr 9, 2024
1 parent 550ad16 commit d790331
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Setup upterm session
uses: lhotari/action-upterm@v1

- name: Build and test
run: mvn -B clean javadoc:javadoc verify

Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.TimeUnit;
import javax.jms.CompletionListener;
import javax.jms.Message;
import javax.jms.MessageProducer;
Expand All @@ -51,6 +52,7 @@
import org.apache.pulsar.common.util.FutureUtil;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.api.extension.RegisterExtension;

@Slf4j
Expand Down Expand Up @@ -482,6 +484,7 @@ public void onException(Message message, Exception e) {
// This test may take long time, because it depends on how the broker
// chooses the Consumer to try to dispatch the messages.
@Test
@Timeout(value = 10, unit = TimeUnit.MINUTES)
public void sendBatchWithCompetingConsumersOnQueue() throws Exception {
Map<String, Object> properties = buildProperties();
if (enableBatching) {
Expand Down

0 comments on commit d790331

Please sign in to comment.