Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ class FlowFlatMapConcatParallelismSpec extends StreamSpec("""
val toSeq = Flow[Int].grouped(1000).toMat(Sink.head)(Keep.right)

class BoomException extends RuntimeException("BOOM~~") with NoStackTrace

val checkValues = List(1, 2, 4, 8, 16, 32, 64, 128)

"A flatMapConcat" must {

for (i <- 1 until 129) {
for (i <- checkValues) {
s"work with value presented sources with parallelism: $i" in {
Source(
List(
Expand Down Expand Up @@ -98,7 +101,7 @@ class FlowFlatMapConcatParallelismSpec extends StreamSpec("""
(sum, seq)
}

for (i <- 1 until 129) {
for (i <- checkValues) {
s"work with generated value presented sources with parallelism: $i " in {
val (sum, sources @ _) = generateRandomValuePresentedSources(100000)
Source(sources)
Expand All @@ -109,7 +112,7 @@ class FlowFlatMapConcatParallelismSpec extends StreamSpec("""
}
}

for (i <- 1 until 129) {
for (i <- checkValues) {
s"work with generated value sequenced sources with parallelism: $i " in {
val (sum, sources @ _) = generateSequencedValuePresentedSources(100000)
Source(sources)
Expand Down
Loading