]> source.dussan.org Git - sonarqube.git/commit
Improve stability of ProgressLoggerTest
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 14 Sep 2016 21:36:19 +0000 (23:36 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 14 Sep 2016 21:36:19 +0000 (23:36 +0200)
commitbfcbb7e32fde1569d2d3225a5217eb36fb65812e
tree2f5bb85df6ded310ec68c56bc239cdcc66789ea9
parent2c5fa5f1fb878e9de5ec4457a59cb740134c0a34
Improve stability of ProgressLoggerTest

in order to avoid :
log_at_fixed_intervals(org.sonar.core.util.ProgressLoggerTest)
java.util.ConcurrentModificationException: null
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
at java.util.ArrayList$Itr.next(ArrayList.java:851)
at org.sonar.api.internal.google.common.collect.AbstractMapBasedMultimap$WrappedCollection$WrappedIterator.next(AbstractMapBasedMultimap.java:486)
at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.sonar.core.util.ProgressLoggerTest.hasInfoLog(ProgressLoggerTest.java:71)
at org.sonar.core.util.ProgressLoggerTest.log_at_fixed_intervals(ProgressLoggerTest.java:44)
sonar-core/src/test/java/org/sonar/core/util/ProgressLoggerTest.java