From 709d1750b4e028d763520313748bcf8d7c4c0da8 Mon Sep 17 00:00:00 2001 From: Amitai Schleier Date: Fri, 28 Jun 2024 15:10:19 -0400 Subject: [PATCH] Fix bug introduced in recent attempted refactor, probably. --- .../kotlin/com/schmonz/greencently/summary/JUnit5Summary.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/schmonz/greencently/summary/JUnit5Summary.kt b/src/main/kotlin/com/schmonz/greencently/summary/JUnit5Summary.kt index 579f7ba..d377511 100644 --- a/src/main/kotlin/com/schmonz/greencently/summary/JUnit5Summary.kt +++ b/src/main/kotlin/com/schmonz/greencently/summary/JUnit5Summary.kt @@ -21,7 +21,7 @@ class JUnit5Summary(testPlan: TestPlan, internal val anyTestsRed: Boolean, inter if (other !is JUnit5Summary) { return false } - if (testCount == other.testCount && anyTestsRed == other.anyTestsRed && anyTestsGreen == other.anyTestsGreen) { + if (testCount == other.testCount && anyTestsGreen && !anyTestsRed) { return true } return false