Skip to content

Commit 4fd5060

Browse files
fix(test): add missing s3TierMoveFactor matcher in ClickHouseStartTest
buildAllResources gained a 5th parameter (s3TierMoveFactor) in this PR but the test mocks still used 4 matchers, causing Mockito to throw InvalidUseOfMatchersException: 5 matchers expected, 4 recorded. Co-authored-by: Jon Haddad <rustyrazorblade@users.noreply.github.com>
1 parent af04d3b commit 4fd5060

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/kotlin/com/rustyrazorblade/easydblab/commands/clickhouse/ClickHouseStartTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ClickHouseStartTest : BaseKoinTest() {
106106
whenever(mockK8sService.waitForPodsReady(any(), any(), any()))
107107
.thenReturn(Result.success(Unit))
108108

109-
whenever(mockClickHouseManifestBuilder.buildAllResources(any(), any(), any(), any()))
109+
whenever(mockClickHouseManifestBuilder.buildAllResources(any(), any(), any(), any(), any()))
110110
.thenReturn(emptyList())
111111
}
112112

@@ -224,6 +224,7 @@ class ClickHouseStartTest : BaseKoinTest() {
224224
replicasPerShard = eq(3),
225225
s3CacheSize = any(),
226226
s3CacheOnWrite = any(),
227+
s3TierMoveFactor = any(),
227228
)
228229
verify(mockK8sService).scaleStatefulSet(
229230
any(),

0 commit comments

Comments
 (0)