Fixed akka-stream-tests-tck warnings (#27436)
This commit is contained in:
parent
01f5698677
commit
914466c8c2
4 changed files with 4 additions and 15 deletions
|
|
@ -31,7 +31,7 @@ class FilePublisherTest extends AkkaPublisherVerification[ByteString] {
|
|||
val chunk = "x" * ChunkSize
|
||||
|
||||
val fw = Files.newBufferedWriter(f)
|
||||
for (i <- 1 to Elements) fw.append(chunk)
|
||||
List.fill(Elements)(chunk).foreach(fw.append)
|
||||
fw.close()
|
||||
f
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,12 +18,7 @@ class GroupByTest extends AkkaPublisherVerification[Int] {
|
|||
if (elements == 0) EmptyPublisher[Int]
|
||||
else {
|
||||
val futureGroupSource =
|
||||
Source(iterable(elements))
|
||||
.groupBy(1, elem => "all")
|
||||
.prefixAndTail(0)
|
||||
.map(_._2)
|
||||
.concatSubstreams
|
||||
.runWith(Sink.head)
|
||||
Source(iterable(elements)).groupBy(1, _ => "all").prefixAndTail(0).map(_._2).concatSubstreams.runWith(Sink.head)
|
||||
val groupSource = Await.result(futureGroupSource, 3.seconds)
|
||||
groupSource.runWith(Sink.asPublisher(false))
|
||||
|
||||
|
|
|
|||
|
|
@ -18,12 +18,7 @@ class SplitWhenTest extends AkkaPublisherVerification[Int] {
|
|||
if (elements == 0) EmptyPublisher[Int]
|
||||
else {
|
||||
val futureSource =
|
||||
Source(iterable(elements))
|
||||
.splitWhen(elem => false)
|
||||
.prefixAndTail(0)
|
||||
.map(_._2)
|
||||
.concatSubstreams
|
||||
.runWith(Sink.head)
|
||||
Source(iterable(elements)).splitWhen(_ => false).prefixAndTail(0).map(_._2).concatSubstreams.runWith(Sink.head)
|
||||
val source = Await.result(futureSource, 3.seconds)
|
||||
source.runWith(Sink.asPublisher(false))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,8 +22,7 @@ object AkkaDisciplinePlugin extends AutoPlugin with ScalafixSupport {
|
|||
"akka-docs",
|
||||
// To be reviewed
|
||||
"akka-bench-jmh",
|
||||
"akka-bench-jmh-typed",
|
||||
"akka-stream-tests-tck")
|
||||
"akka-bench-jmh-typed")
|
||||
|
||||
val strictProjects = Set("akka-discovery", "akka-protobuf", "akka-coordination")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue