Skip to content

Commit 3b32f53

Browse files
committed
make the test more forgiving
1 parent b52c35a commit 3b32f53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/kediatr-core/src/test/kotlin/com/trendyol/kediatr/CachedRegistryPerformanceTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package com.trendyol.kediatr
55
import com.trendyol.kediatr.testing.*
66
import io.kotest.core.spec.style.ShouldSpec
77
import io.kotest.matchers.comparables.shouldBeLessThan
8-
import io.kotest.matchers.doubles.shouldBeGreaterThan
8+
import io.kotest.matchers.doubles.*
99
import io.kotest.matchers.shouldBe
1010
import kotlin.system.measureTimeMillis
1111

@@ -126,7 +126,7 @@ class CachedRegistryPerformanceTest :
126126

127127
// Cached should be significantly faster
128128
cachedTime shouldBeLessThan (uncachedTime)
129-
improvementRatio shouldBeGreaterThan 2.0 // Pipeline behaviors should show even better improvement
129+
improvementRatio shouldBeGreaterThanOrEqual 2.0 // Pipeline behaviors should show even better improvement
130130
}
131131

132132
should("demonstrate end-to-end mediator performance improvement") {

0 commit comments

Comments
 (0)