Skip to content

Commit

Permalink
Enable more projects for scala3
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Jun 1, 2021
1 parent 3579395 commit fccb984
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ lazy val openTracingBackend = (projectMatrix in file("metrics/open-tracing-backe
),
scalaTest
)
.jvmPlatform(scalaVersions = scala2)
.jvmPlatform(scalaVersions = scala2 ++ scala3)
.dependsOn(core)

lazy val prometheusBackend = (projectMatrix in file("metrics/prometheus-backend"))
Expand All @@ -843,7 +843,7 @@ lazy val prometheusBackend = (projectMatrix in file("metrics/prometheus-backend"
),
scalaTest
)
.jvmPlatform(scalaVersions = scala2)
.jvmPlatform(scalaVersions = scala2 ++ scala3)
.dependsOn(core)

lazy val zioTelemetryOpenTelemetryBackend = (projectMatrix in file("metrics/zio-telemetry-open-telemetry-backend"))
Expand Down Expand Up @@ -893,7 +893,7 @@ lazy val slf4jBackend = (projectMatrix in file("logging/slf4j"))
),
scalaTest
)
.jvmPlatform(scalaVersions = scala2)
.jvmPlatform(scalaVersions = scala2 ++ scala3)
.dependsOn(core)

lazy val examplesCe2 = (projectMatrix in file("examples-ce2"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ class OpenTracingBackendTest extends AnyFlatSpec with Matchers with BeforeAndAft
val response = basicRequest.post(uri"http://stub/echo").send(backend)
response.code shouldBe StatusCode.Ok

tracer.finishedSpans().asScala.head.tags().asScala(Tags.HTTP_STATUS.getKey) shouldBe StatusCode.Ok.code
tracer
.finishedSpans()
.asScala
.head
.tags()
.asScala(Tags.HTTP_STATUS.getKey)
.asInstanceOf[Int] shouldBe StatusCode.Ok.code
}

it should "add logs if response is error" in {
Expand Down

0 comments on commit fccb984

Please sign in to comment.