Skip to content

Commit

Permalink
Disables flaky test suite of InstrumentedSource.bufferedSource (#10321)
Browse files Browse the repository at this point in the history
CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
nmarton-da authored Jul 20, 2021
1 parent 504c231 commit 5fa49c3
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ final class InstrumentedSourceSpec extends AsyncFlatSpec with Matchers with Akka
}
}

// this test suite is disabled since it's timing related expectations proven to be very flaky in automated tests
behavior of "InstrumentedSource.bufferedSource"

def throttledTest(producerMaxSpeed: Int, consumerMaxSpeed: Int): Future[List[Long]] = {
Expand All @@ -166,7 +167,7 @@ final class InstrumentedSourceSpec extends AsyncFlatSpec with Matchers with Akka
def samplePercentage(samples: List[Long])(filter: Long => Boolean): Double =
samples.count(filter).toDouble / samples.size.toDouble * 100.0

it should "signal mostly full buffer if slow consumer" in {
it should "signal mostly full buffer if slow consumer" ignore {
throttledTest(
producerMaxSpeed = 10,
consumerMaxSpeed = 5,
Expand All @@ -176,7 +177,7 @@ final class InstrumentedSourceSpec extends AsyncFlatSpec with Matchers with Akka
}
}

it should "signal mostly empty buffer if fast consumer" in {
it should "signal mostly empty buffer if fast consumer" ignore {
throttledTest(
producerMaxSpeed = 10,
consumerMaxSpeed = 20,
Expand All @@ -186,7 +187,7 @@ final class InstrumentedSourceSpec extends AsyncFlatSpec with Matchers with Akka
}
}

it should "signal mostly empty buffer if speeds are aligned" in {
it should "signal mostly empty buffer if speeds are aligned" ignore {
throttledTest(
producerMaxSpeed = 10,
consumerMaxSpeed = 10,
Expand All @@ -196,7 +197,7 @@ final class InstrumentedSourceSpec extends AsyncFlatSpec with Matchers with Akka
}
}

it should "signal mostly empty buffer if consumer slightly faster" in {
it should "signal mostly empty buffer if consumer slightly faster" ignore {
throttledTest(
producerMaxSpeed = 10,
consumerMaxSpeed = 12,
Expand All @@ -206,7 +207,7 @@ final class InstrumentedSourceSpec extends AsyncFlatSpec with Matchers with Akka
}
}

it should "signal mostly full buffer if consumer slightly slower" in {
it should "signal mostly full buffer if consumer slightly slower" ignore {
throttledTest(
producerMaxSpeed = 10,
consumerMaxSpeed = 8,
Expand Down

0 comments on commit 5fa49c3

Please sign in to comment.