Test Akka Discovery with Scala 3 (#30410)

This commit is contained in:
Arnout Engelen 2021-07-21 09:07:50 +02:00 committed by GitHub
parent 83c6e9506b
commit 083303266e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -38,7 +38,7 @@ jobs:
- stage: scala3
name: scala3
# separate job since only a few modules compile with Scala 3 yet
script: jabba install adopt@1.11-0 && jabba use adopt@1.11-0 && sbt -Dakka.build.scalaVersion=3.0 "akka-actor-tests/test:compile" akka-actor-testkit-typed/compile akka-actor-typed/compile akka-discovery/compile akka-pki/test:compile akka-protobuf/test:compile akka-protobuf-v3/test:compile akka-slf4j/test:compile akka-stream/compile akka-stream-tests-tck/test akka-coordination/test akka-serialization-jackson/test:compile akka-testkit/test akka-stream-testkit/test
script: jabba install adopt@1.11-0 && jabba use adopt@1.11-0 && sbt -Dakka.build.scalaVersion=3.0 "akka-actor-tests/test:compile" akka-actor-testkit-typed/compile akka-actor-typed/compile akka-discovery/test akka-pki/test:compile akka-protobuf/test:compile akka-protobuf-v3/test:compile akka-slf4j/test:compile akka-stream/compile akka-stream-tests-tck/test akka-coordination/test akka-serialization-jackson/test:compile akka-testkit/test akka-stream-testkit/test
stages:
- name: whitesource

View file

@ -72,7 +72,8 @@ abstract class DockerBindDnsService(config: Config) extends AkkaSpec(config) wit
})
val creation = client.createContainer(containerConfig, containerName)
creation.warnings() should be(null).or(have(size(0)))
if (creation.warnings() != null)
creation.warnings() should have(size(0))
id = Some(creation.id())
client.startContainer(creation.id())