Skip to content

Commit

Permalink
Merge pull request #1386 from ozangunalp/assert_subscriber_list
Browse files Browse the repository at this point in the history
Change the AssertSubscriber items list back to copyOnWrite
  • Loading branch information
jponge authored Sep 27, 2023
2 parents 99913a8 + 5442f2c commit 50184ca
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import static java.time.Duration.ofSeconds;

import java.time.Duration;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.concurrent.*;
Expand Down Expand Up @@ -67,7 +65,7 @@ public class AssertSubscriber<T> implements MultiSubscriber<T>, ContextSupport {
/**
* The received items.
*/
private final List<T> items = Collections.synchronizedList(new ArrayList<>());
private final List<T> items = new CopyOnWriteArrayList<>();

/**
* The received failure.
Expand Down

0 comments on commit 50184ca

Please sign in to comment.