diff --git a/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs b/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs index 9446a1258a5..9d99bc1f681 100644 --- a/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs +++ b/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs @@ -101,16 +101,8 @@ public void CompositeActivityProcessor_ForceFlush(int timeout) { processor.ForceFlush(timeout); - if (timeout != 0) - { - Assert.True(p1.ForceFlushCalled); - Assert.True(p2.ForceFlushCalled); - } - else - { - Assert.False(p1.ForceFlushCalled); - Assert.False(p2.ForceFlushCalled); - } + Assert.True(p1.ForceFlushCalled); + Assert.True(p2.ForceFlushCalled); } } }