Skip to content

Commit

Permalink
fixing test failure with smallrye-reactive-messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiRajAnand committed Dec 3, 2024
1 parent a985807 commit 2248fe8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
<version.com.miglayout>3.7.4</version.com.miglayout>
<version.domino-slf4j-logger>1.0.1</version.domino-slf4j-logger>
<version.com.google.protobuf>3.25.5</version.com.google.protobuf>
<version.com.h2database>2.2.220</version.com.h2database>
<version.com.h2database>2.3.232</version.com.h2database>
<version.com.networknt.json-schema-validator>1.0.86</version.com.networknt.json-schema-validator>
<version.com.sun.xml.bind>4.0.4</version.com.sun.xml.bind>
<version.com.sun.xml.bind>4.0.5</version.com.sun.xml.bind>
<version.com.thoughtworks.xstream>1.4.21</version.com.thoughtworks.xstream>
<version.guru.nidi>0.18.0</version.guru.nidi>
<version.info.picocli>4.7.5</version.info.picocli>
Expand Down Expand Up @@ -191,7 +191,7 @@

<version.net.byte-buddy>1.14.11</version.net.byte-buddy>

<version.org.postgresql>42.7.2</version.org.postgresql>
<version.org.postgresql>42.7.4</version.org.postgresql>

<version.ch.obermuhlner>2.0.1</version.ch.obermuhlner>
<version.io.smallrye.jandex>3.2.2</version.io.smallrye.jandex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
Expand All @@ -78,6 +78,12 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
<scope>test</scope>
</dependency>

<!-- this is used implicitly by quarkus tests so let's make Maven aware
of it -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@
import io.smallrye.reactive.messaging.memory.InMemoryConnector;
import io.smallrye.reactive.messaging.memory.InMemorySink;
import io.smallrye.reactive.messaging.memory.InMemorySource;
import org.eclipse.microprofile.reactive.messaging.Message;
import org.eclipse.microprofile.reactive.messaging.spi.Connector;
import org.junit.jupiter.api.Test;

import java.util.List;

import static org.awaitility.Awaitility.await;

import static org.assertj.core.api.Assertions.assertThat;

@QuarkusTest
Expand All @@ -46,6 +51,7 @@ public void sendEvents() {
incomingEvents.send(new Event("temperature", 20));
incomingEvents.send(new Event("temperature", 40));

await().<List<? extends Message<Alert>>>until(outgoingAlerts::received, t -> t.size() == 1);
assertThat(outgoingAlerts.received().size()).isEqualTo(1);
assertThat(outgoingAlerts.received().get(0).getPayload().getSeverity()).isEqualTo("warning");

Expand Down
2 changes: 1 addition & 1 deletion drools-reliability/drools-reliability-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<properties>
<java.module.name>org.drools.reliability.infinispan</java.module.name>
<version.testcontainers>1.17.2</version.testcontainers>
<version.testcontainers>1.20.1</version.testcontainers>
</properties>

<dependencyManagement>
Expand Down

0 comments on commit 2248fe8

Please sign in to comment.