diff --git a/build.sbt b/build.sbt index bc14cef..e75e2cf 100644 --- a/build.sbt +++ b/build.sbt @@ -9,7 +9,7 @@ lazy val sprayJsonVersion = "1.3.5" lazy val kafkaClientVersion = "2.3.0" lazy val jsoninterScalaVersion = "1.0.0" lazy val confluentPlatformVersion = "5.3.2" -lazy val scalaTestVersion = "3.0.8" +lazy val scalaTestVersion = "3.2.1" lazy val scalaCheckVersion = "1.14.3" lazy val scalaMockVersion = "3.6.0" lazy val wiremockVersion = "2.24.0" diff --git a/testkit/src/main/scala/com/ovoenergy/kafka/serialization/testkit/UnitSpec.scala b/testkit/src/main/scala/com/ovoenergy/kafka/serialization/testkit/UnitSpec.scala index 3ada626..fe83652 100644 --- a/testkit/src/main/scala/com/ovoenergy/kafka/serialization/testkit/UnitSpec.scala +++ b/testkit/src/main/scala/com/ovoenergy/kafka/serialization/testkit/UnitSpec.scala @@ -20,7 +20,8 @@ import org.scalacheck.{Arbitrary, Gen} import org.scalacheck.Arbitrary._ import org.scalatest.concurrent.{ScalaFutures, ScaledTimeSpans} import org.scalatest.prop.PropertyChecks -import org.scalatest.{Matchers, WordSpec} +import org.scalatest.matchers.should.Matchers +import org.scalatest.wordspec.AnyWordSpec object UnitSpec { @@ -38,7 +39,7 @@ object UnitSpec { } -abstract class UnitSpec extends WordSpec with Matchers with PropertyChecks with ScalaFutures with ScaledTimeSpans { +abstract class UnitSpec extends AnyWordSpec with Matchers with PropertyChecks with ScalaFutures with ScaledTimeSpans { override lazy val spanScaleFactor: Double = sys.env.get("TEST_TIME_FACTOR").map(_.toDouble).getOrElse(super.spanScaleFactor)