Skip to content

Commit 9b4c06e

Browse files
authored
Update OutboxProcessorIntegrationTest.java
1 parent 4d6d0c8 commit 9b4c06e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

outbox-kafka-spring-reactive/src/test/java/one/tomorrow/transactionaloutbox/reactive/service/OutboxProcessorIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void should_processRecordsInOrder_whenKafkaIsTemporarilyNotAvailable() {
146146
testee = new OutboxProcessor(repository, lockService, producerFactory(producerProps), processingInterval, DEFAULT_OUTBOX_LOCK_TIMEOUT, "processor", eventSource, batchSize);
147147

148148
// when
149-
int numRecords = 50000;
149+
int numRecords = 5000;
150150
List<Mono<OutboxRecord>> outboxRecordMonos = IntStream.rangeClosed(1, numRecords).mapToObj(i -> {
151151
// - use the same key so that even if the kafka setup / number of partitions is changed the events still are on the same partition
152152
// - The Mono has to be cached, so that it can be consumed twice
@@ -161,7 +161,7 @@ void should_processRecordsInOrder_whenKafkaIsTemporarilyNotAvailable() {
161161

162162
// then
163163
List<OutboxRecord> outboxRecords = getSortedById(outboxRecordMonos);
164-
Iterator<ConsumerRecord<String, byte[]>> kafkaRecordsIter = consumeAndDeduplicateRecords(outboxRecords.size(), Duration.ofSeconds(30))
164+
Iterator<ConsumerRecord<String, byte[]>> kafkaRecordsIter = consumeAndDeduplicateRecords(outboxRecords.size(), Duration.ofSeconds(300))
165165
.iterator();
166166
for (OutboxRecord outboxRecord : outboxRecords) {
167167
assertConsumedRecord(outboxRecord, eventSource, kafkaRecordsIter.next());

0 commit comments

Comments
 (0)