Skip to content

Commit 0e4d7b6

Browse files
committed
Fix test
1 parent 33c7997 commit 0e4d7b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/kotlin/eu/openanalytics/shinyproxyoperator/MainIntegrationTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ class MainIntegrationTest : IntegrationTestBase() {
656656
fun `may no re-create instance after remove`() = setup(
657657
Mode.NAMESPACED,
658658
disableSecureCookies = true
659-
) { namespace, shinyProxyClient, namespacedClient, stableClient, operator, reconcileListener, _ ->
659+
) { namespace, shinyProxyClient, namespacedClient, _, operator, reconcileListener, _ ->
660660
if (chaosEnabled) return@setup // this test depends on timings and therefore it does not work with chaos enabled
661661
// 1. create a SP instance
662662
val spTestInstance = ShinyProxyTestInstance(
@@ -699,7 +699,7 @@ class MainIntegrationTest : IntegrationTestBase() {
699699

700700
// let it all work a bit
701701
withTimeout(50_000) {
702-
while (stableClient.replicationControllers().list().items.isNotEmpty()) {
702+
while (namespacedClient.inNamespace(namespace).apps().replicaSets().list().items.isNotEmpty()) {
703703
delay(1000)
704704
logger.debug { "Pod still exists!" }
705705
}

0 commit comments

Comments
 (0)