Replace scalactic deprecations (#25886)

This commit is contained in:
Philippus Baalman 2018-11-09 09:07:21 +01:00 committed by Johan Andrén
parent 847a7c1afd
commit 90bf989630
20 changed files with 82 additions and 85 deletions

View file

@ -82,7 +82,7 @@ class EnvelopeBufferSpec extends AkkaSpec {
envelope.parseHeader(headerOut)
headerOut.version should ===(version)
headerOut.uid should ===(42)
headerOut.uid should ===(42L)
headerOut.inboundActorRefCompressionTableVersion should ===(28.toByte)
headerOut.inboundClassManifestCompressionTableVersion should ===(35.toByte)
headerOut.serializer should ===(4)
@ -117,7 +117,7 @@ class EnvelopeBufferSpec extends AkkaSpec {
envelope.parseHeader(headerOut)
headerOut.version should ===(version)
headerOut.uid should ===(42)
headerOut.uid should ===(42L)
headerOut.serializer should ===(4)
headerOut.senderActorRefPath should ===(OptionVal.Some("akka://EnvelopeBufferSpec/uncompressable0"))
headerOut.senderActorRef(originUid) should ===(OptionVal.None)
@ -145,7 +145,7 @@ class EnvelopeBufferSpec extends AkkaSpec {
envelope.parseHeader(headerOut)
headerOut.version should ===(version)
headerOut.uid should ===(42)
headerOut.uid should ===(42L)
headerOut.serializer should ===(4)
headerOut.senderActorRef(originUid).get.path.toSerializationFormat should ===("akka://EnvelopeBufferSpec/reallylongcompressablestring")
headerOut.senderActorRefPath should ===(OptionVal.None)
@ -198,7 +198,7 @@ class EnvelopeBufferSpec extends AkkaSpec {
envelope.parseHeader(headerOut)
headerOut.version should ===(version)
headerOut.uid should ===(42)
headerOut.uid should ===(42L)
headerOut.serializer should ===(4)
headerOut.senderActorRef(originUid).get.path.toSerializationFormat should ===("akka://EnvelopeBufferSpec/reallylongcompressablestring")
headerOut.senderActorRefPath should ===(OptionVal.None)

View file

@ -37,19 +37,19 @@ class FlightRecorderSpec extends AkkaSpec {
def checkLogInitialized(log: reader.RollingLog): Unit = {
log.logs(0).state should ===(Live)
log.logs(0).head should ===(0)
log.logs(0).head should ===(0L)
log.logs(0).richEntries.toSeq should ===(Nil)
log.logs(1).state should ===(Empty)
log.logs(1).head should ===(0)
log.logs(1).head should ===(0L)
log.logs(1).richEntries.toSeq should ===(Nil)
log.logs(2).state should ===(Empty)
log.logs(2).head should ===(0)
log.logs(2).head should ===(0L)
log.logs(2).richEntries.toSeq should ===(Nil)
log.logs(3).state should ===(Empty)
log.logs(3).head should ===(0)
log.logs(3).head should ===(0L)
log.logs(3).richEntries.toSeq should ===(Nil)
}

View file

@ -13,7 +13,7 @@ class CompressionTableSpec extends AkkaSpec {
val decomp = CompressionTable(17L, 1, Map("0" 0, "1" 1, "2" 2, "3" 3)).invert
decomp.table should ===(Array("0", "1", "2", "3"))
decomp.originUid should ===(17L)
decomp.version should ===(1)
decomp.version should ===(1.toByte)
}
"enforce to start allocating from 0th index" in {