Skip to content

Commit

Permalink
[Fix #2070] Synchronizing TestEventPublisher (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored Jun 17, 2024
1 parent 4078795 commit b78db84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CountDownLatch;

Expand All @@ -35,7 +36,7 @@ public class TestEventPublisher implements EventPublisher {
private CountDownLatch latch;

public List<DataEvent<?>> getEvents() {
return events;
return Collections.unmodifiableList(events);
}

public TestEventPublisher() {
Expand All @@ -56,6 +57,7 @@ public void publish(Collection<DataEvent<?>> events) {

public void setLatch(CountDownLatch latch) {
this.latch = latch;
events = new ArrayList<>();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
quarkus.devservices.enabled=false

0 comments on commit b78db84

Please sign in to comment.