Update scala to 2.13.3 and silencer to 1.7.0 (#28991)

* Update scala to 2.13.3 and silencer to 1.7.0
* Also travis
* Fix various warnings
This commit is contained in:
Arnout Engelen 2020-08-10 12:54:38 +02:00 committed by GitHub
parent f7bfed02bc
commit c41c0420ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
113 changed files with 180 additions and 206 deletions

View file

@ -47,7 +47,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
}(Keep.right)
.toMat(Sink.seq)(Keep.both)
.withAttributes(attributes)
.run
.run()
prefixF.futureValue should ===(0 until 2)
suffixF.futureValue should ===(2 until 10)
@ -60,7 +60,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
}(Keep.right)
.toMat(Sink.seq)(Keep.both)
.withAttributes(attributes)
.run
.run()
prefixF.futureValue should ===(0 until 10)
suffixF.futureValue should be(empty)
@ -73,7 +73,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
}(Keep.right)
.toMat(Sink.seq)(Keep.both)
.withAttributes(attributes)
.run
.run()
prefixF.futureValue should ===(0 until 10)
suffixF.futureValue should be(empty)
@ -87,7 +87,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
.take(10)
.toMat(Sink.seq)(Keep.both)
.withAttributes(attributes)
.run
.run()
prefixF.futureValue should ===(0 until 10)
suffixF.futureValue should ===(10 until 20)
@ -100,7 +100,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
}(Keep.right)
.to(Sink.ignore)
.withAttributes(attributes)
.run
.run()
val ex = suffixF.failed.futureValue
ex.getCause should not be null
@ -117,7 +117,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
}(Keep.right)
.toMat(Sink.ignore)(Keep.both)
.withAttributes(attributes)
.run
.run()
prefixF.futureValue should ===(0 until 10)
val ex = suffixF.failed.futureValue
ex should ===(TE("don't like 15 either!"))
@ -203,7 +203,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
}(Keep.right)
.toMat(Sink.seq)(Keep.both)
.withAttributes(attributes)
.run
.run()
prefixF.futureValue should ===(0 until 4)
suffixF.futureValue should be(empty)
@ -221,7 +221,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
.toMat(Sink.seq)(Keep.both)
.withAttributes(attributes)
.withAttributes(attributes)
.run
.run()
prefixF.futureValue should ===(0 until 4)
suffixF.futureValue should be(empty)
@ -234,7 +234,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
}(Keep.right)
.toMat(Sink.seq)(Keep.both)
.withAttributes(attributes)
.run
.run()
prefixF.futureValue should ===(0 until 4)
suffixF.futureValue should ===(11 :: 12 :: Nil)
@ -247,7 +247,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
}(Keep.right)
.toMat(Sink.seq)(Keep.both)
.withAttributes(attributes)
.run
.run()
prefixF.failed.futureValue should be(a[NeverMaterializedException])
prefixF.failed.futureValue.getCause should ===(TE("boom-bada-bang (4)"))
@ -265,7 +265,7 @@ class FlowFlatMapPrefixSpec extends StreamSpec {
}(Keep.right)
.toMat(Sink.seq)(Keep.both)
.withAttributes(attributes)
.run
.run()
suffixF.futureValue should be(empty)
val (prefix, suffix) = prefixAndTailF.futureValue