Skip to content

Commit

Permalink
Merge pull request #14245 from cescoffier/fix-cme-in-reactive-messagi…
Browse files Browse the repository at this point in the history
…ng-tests

Fix concurrency modification exception in Reactive Messaging tests
  • Loading branch information
geoand authored Jan 12, 2021
2 parents d0ed9c6 + c04f0fe commit 1268f72
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.quarkus.smallrye.reactivemessaging.blocking.beans;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

import javax.enterprise.context.ApplicationScoped;

Expand All @@ -12,8 +12,8 @@
@ApplicationScoped
public class InfiniteSubscriber {

private final List<Integer> payloads = new ArrayList<>();
private final List<Integer> messages = new ArrayList<>();
private final List<Integer> payloads = new CopyOnWriteArrayList<>();
private final List<Integer> messages = new CopyOnWriteArrayList<>();

@Incoming("infinite-producer-payload")
public SubscriberBuilder<Integer, Void> consumeFourItems() {
Expand Down

0 comments on commit 1268f72

Please sign in to comment.