You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==> X prometheus4cats.javasimpleclient.JavaMetricRegistrySuite.register, set and de-register a counter 0.136s munit.FailException: Failing seed: qYyl0jlqD1ReuFSHT09QwNolfm8v7BNkmVF3kx9nu8C=
You can reproduce this failure by adding the following override to your suite:
override def scalaCheckInitialSeed = "qYyl0jlqD1ReuFSHT09QwNolfm8v7BNkmVF3kx9nu8C="
Exception raised on property evaluation.
> ARG_0: Some(Metric.Prefix("AU"))
> ARG_1: Counter.Name("fu_total")
> ARG_2: Metric.Help("Mg")
> ARG_3: Metric.CommonLabels([Label.Name("iS") -> "",Label.Name("pA") -> "",Label.Name("di") -> "",Label.Name("Cw") -> "",Label.Name("BK") -> "",Label.Name("bO") -> "",Label.Name("BT") -> "",Label.Name("Rm") -> "",Label.Name("RW") -> "",Label.Name("So") -> ""])
> ARG_4: -1.1577490100715895E-21
> Exception: munit.ComparisonFailException: /home/runner/work/prometheus4cats/prometheus4cats/testkit/src/main/scala/prometheus4cats/testkit/CallbackRegistrySuite.scala:56
55: .surround(
56: get.map(res => if (value >= 0) assertEquals(res, Some(value)) else assertEquals(res, Some(0.0)))
57: ) >> get.map(assertEquals(_, None))
values are not the same
=> Obtained
None
=> Diff (- obtained, + expected)
-None
+Some(
+ value = 0.0
+)
at munit.Assertions.fail(Assertions.scala:283)
at munit.Assertions.fail$(Assertions.scala:277)
at munit.FunSuite.fail(FunSuite.scala:11)
at munit.ScalaCheckEffectSuite.munit$ScalaCheckEffectSuite$$parseTestResult(ScalaCheckEffectSuite.scala:84)
at munit.ScalaCheckEffectSuite.$anonfun$checkPropF$2(ScalaCheckEffectSuite.scala:72)
at munit.ScalaCheckEffectSuite.$anonfun$checkPropF$2$adapted(ScalaCheckEffectSuite.scala:72)
at as @ org.scalacheck.effect.PropF$.effectOfUnitToPropF(PropF.scala:196)
at unsafeToFuture @ munit.CatsEffectSuite$$anonfun$1.applyOrElse(CatsEffectSuite.scala:42)
at unsafeToFuture @ munit.CatsEffectSuite$$anonfun$1.applyOrElse(CatsEffectSuite.scala:42)
```
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: