Skip to content

Commit

Permalink
Fix intermittent failure of messaging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Apr 3, 2020
1 parent 935b6db commit 7ce4646
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
package org.apache.camel.quarkus.component.messaging.it;

import java.util.Map;
import java.util.function.Consumer;

import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;
import org.apache.camel.util.CollectionHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.output.OutputFrame;
import org.testcontainers.containers.wait.strategy.Wait;
import org.testcontainers.utility.TestcontainersConfiguration;

Expand All @@ -43,6 +45,13 @@ public Map<String, String> start() {
try {
container = new GenericContainer(ACTIVEMQ_IMAGE)
.withExposedPorts(ACTIVEMQ_PORT)
.withLogConsumer(new Consumer<OutputFrame>() {
@Override
public void accept(OutputFrame outputFrame) {
System.out.println(outputFrame.getUtf8String());
}
})
.withEnv("BROKER_CONFIG_MAX_DISK_USAGE", "100")
.waitingFor(Wait.forListeningPort());

container.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;

import static org.hamcrest.core.Is.is;

@QuarkusTest
@QuarkusTestResource(ActiveMQTestResource.class)
@Disabled("https://github.com/apache/camel-quarkus/issues/1023")
class JmsTest {

@ParameterizedTest
Expand Down

0 comments on commit 7ce4646

Please sign in to comment.