Skip to content

Commit

Permalink
revert temp changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mslabek committed Nov 26, 2024
1 parent cac0d67 commit 21bad8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
16 changes: 1 addition & 15 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import com.typesafe.sbt.packager.SettingsHelper
import com.typesafe.sbt.packager.docker.DockerPlugin.autoImport.dockerUsername
import org.slf4j.LoggerFactory
import pl.project13.scala.sbt.JmhPlugin
import pl.project13.scala.sbt.JmhPlugin._
import sbt.Keys._
Expand Down Expand Up @@ -161,14 +160,6 @@ def forScalaVersion[T](version: String)(provide: PartialFunction[(Int, Int), T])
}
}

lazy val testGroupStartLogger = new TestReportListener {
private val logger = LoggerFactory.getLogger("TestListener")
override def startGroup(name: String): Unit = logger.error(s"Starting test group [$name]")
override def testEvent(event: TestEvent): Unit = ()
override def endGroup(name: String, t: Throwable): Unit = ()
override def endGroup(name: String, result: TestResult): Unit = ()
}

lazy val commonSettings =
publishSettings ++
Seq(
Expand All @@ -179,12 +170,7 @@ lazy val commonSettings =
"confluent" at "https://packages.confluent.io/maven",
),
// We ignore k8s tests to keep development setup low-dependency
Test / testOptions ++= Seq(
scalaTestReports,
ignoreSlowTests,
ignoreExternalDepsTests,
Tests.Listeners(List(testGroupStartLogger))
),
Test / testOptions ++= Seq(scalaTestReports, ignoreSlowTests, ignoreExternalDepsTests),
addCompilerPlugin("org.typelevel" % "kind-projector" % "0.13.3" cross CrossVersion.full),
libraryDependencies += compilerPlugin(
"com.github.ghik" % "silencer-plugin" % forScalaVersion(scalaVersion.value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,7 @@ trait NuResourcesTest
testCode: => Assertion
): Assertion =
createProcessRequest(process.name) { _ =>
// FIXME: sometimes this cant be decoded
logger.error(
s"FLAKY TEST PROBLEM in test `snapshots process` ---- decoded json: ${parser.decode[Json](responseAs[String]).toString}"
)
val json = parser.decode[Json](responseAs[String]).rightValue
logger.error(json.toString)
val resp = CreateProcessResponse(json)

resp.processName shouldBe process.name
Expand Down

0 comments on commit 21bad8d

Please sign in to comment.