Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camel 4.7.0 update fix : OutgoingCamelTest #2693

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ void testWithBeanDeclaringASimpleProcessorThatForwardIncomingHeaders() throws Ex
final CompletableFuture<Exchange> completableFuture = CompletableFuture
.supplyAsync(
() -> camelContext().createConsumerTemplate()
.receive("nats:out?servers=127.0.0.1:7656&connectionTimeout=60000", 60000));
.receive("nats:out?servers=127.0.0.1:7656&connectionTimeout=50000", 60000));
camelContext().createProducerTemplate()
.asyncRequestBodyAndHeader("nats:in?servers=127.0.0.1:7656&connectionTimeout=60000", "a", HEADER_KEY,
.asyncRequestBodyAndHeader("nats:in?servers=127.0.0.1:7656&connectionTimeout=50000", "a", HEADER_KEY,
HEADER_VALUE);

final Exchange exchange = completableFuture.get(60, TimeUnit.SECONDS);
Expand Down Expand Up @@ -171,8 +171,8 @@ private MapBasedConfig getNatsConfig() {
final String inPrefix = "mp.messaging.incoming.in.";
final String outPrefix = "mp.messaging.outgoing.out.";
final Map<String, Object> config = new HashMap<>();
config.putIfAbsent(inPrefix + "endpoint-uri", "nats:in?servers=127.0.0.1:7656&connectionTimeout=60000");
config.putIfAbsent(outPrefix + "endpoint-uri", "nats:out?servers=127.0.0.1:7656&connectionTimeout=60000");
config.putIfAbsent(inPrefix + "endpoint-uri", "nats:in?servers=127.0.0.1:7656&connectionTimeout=50000");
config.putIfAbsent(outPrefix + "endpoint-uri", "nats:out?servers=127.0.0.1:7656&connectionTimeout=50000");
config.putIfAbsent(inPrefix + "connector", CamelConnector.CONNECTOR_NAME);
config.putIfAbsent(outPrefix + "connector", CamelConnector.CONNECTOR_NAME);
return new MapBasedConfig(config);
Expand Down