Skip to content

Commit

Permalink
Increase test fault tolerance by removing SpanFactory usage
Browse files Browse the repository at this point in the history
Increase test fault tolerance by removing SpanFactory usage

#2021
  • Loading branch information
smcvb committed Sep 6, 2022
1 parent 2e309b0 commit b94ca3d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import org.axonframework.messaging.StreamableMessageSource;
import org.axonframework.messaging.unitofwork.CurrentUnitOfWork;
import org.axonframework.serialization.SerializationException;
import org.axonframework.tracing.NoOpSpanFactory;
import org.axonframework.tracing.TestSpanFactory;
import org.hamcrest.CoreMatchers;
import org.junit.jupiter.api.*;
Expand Down Expand Up @@ -1963,6 +1964,11 @@ void refuseStartDuringShutdown() throws Exception {
@Test
@Timeout(value = 1000)
void isReplayingWhenNotCaughtUp() throws Exception {
initProcessor(
TrackingEventProcessorConfiguration.forSingleThreadedProcessing()
.andEventAvailabilityTimeout(100, TimeUnit.MILLISECONDS),
builder -> builder.spanFactory(NoOpSpanFactory.INSTANCE)
);
when(mockHandler.supportsReset()).thenReturn(true);

final List<String> handled = new CopyOnWriteArrayList<>();
Expand Down

0 comments on commit b94ca3d

Please sign in to comment.