Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test #52

Open
TimWSpence opened this issue Jan 10, 2023 · 0 comments
Open

Failing test #52

TimWSpence opened this issue Jan 10, 2023 · 0 comments

Comments

@TimWSpence
Copy link
Contributor

==> 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)
    ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant