Fix compilation error GraphMergePrioritizedNSpec Scala 2.12 (#31286)
* immutable.Seq
This commit is contained in:
parent
83c211b84f
commit
8b42165cf1
1 changed files with 3 additions and 3 deletions
|
|
@ -152,10 +152,10 @@ class GraphMergePrioritizedNSpec extends StreamSpec {
|
|||
val source2 = Source.fromIterator[Int](() => Iterator.empty).addAttributes(myAttributes2)
|
||||
val source3: Source[Int, NotUsed] = Source.fromIterator[Int](() => Iterator.empty).addAttributes(myAttributes3)
|
||||
|
||||
val sourcesAndPriorities = Seq(
|
||||
val sourcesAndPriorities = List(
|
||||
(source1, source1.getAttributes.get[MyPriority](defaultPriority).priority),
|
||||
(source2, source2.getAttributes.get[MyPriority](defaultPriority).priority),
|
||||
(source3, source3.getAttributes.get[MyPriority](defaultPriority).priority));
|
||||
(source3, source3.getAttributes.get[MyPriority](defaultPriority).priority))
|
||||
|
||||
val probe = TestSubscriber.manualProbe[Int]()
|
||||
|
||||
|
|
@ -163,7 +163,7 @@ class GraphMergePrioritizedNSpec extends StreamSpec {
|
|||
|
||||
val subscription = probe.expectSubscription()
|
||||
|
||||
var collected = Seq.empty[Int]
|
||||
var collected = Vector.empty[Int]
|
||||
for (_ <- 1 to elementCount) {
|
||||
subscription.request(1)
|
||||
collected :+= probe.expectNext()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue