Skip to content

Commit b50bc8e

Browse files
committed
Fix itest: add extra delays (because resources are deleted after delay)
1 parent a0f25a6 commit b50bc8e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class MainIntegrationTest : IntegrationTestBase() {
352352
spTestInstanceUpdated.waitForOneReconcile()
353353

354354
// 7. wait for delete to happen
355-
delay(5000)
355+
delay(35_000)
356356

357357
// 8. assert correctness
358358
spTestInstanceUpdated.assertInstanceIsCorrect()
@@ -429,7 +429,7 @@ class MainIntegrationTest : IntegrationTestBase() {
429429
logger.debug { "Pod still exists!" }
430430
}
431431
// 11. give operator time to cleanup
432-
delay(5000)
432+
delay(35_000)
433433

434434
// 11. assert older instance does not exists anymore
435435
assertThrows<IllegalStateException>("Instance not found") {
@@ -848,7 +848,7 @@ class MainIntegrationTest : IntegrationTestBase() {
848848
spTestInstanceUpdated.waitForOneReconcile()
849849

850850
// 7. wait for delete to happen
851-
delay(5000)
851+
delay(35_000)
852852

853853
// 8. assert correctness
854854
spTestInstanceUpdated.assertInstanceIsCorrect()
@@ -907,7 +907,7 @@ class MainIntegrationTest : IntegrationTestBase() {
907907
operator.shinyProxyController.deleteSingleShinyProxyInstance(resourceRetriever, sp, instance)
908908

909909
// let it all work a bit
910-
delay(2500)
910+
delay(32_500)
911911

912912
val replicaSets = namespacedClient.inNamespace(namespace).apps().replicaSets().list().items
913913
assertEquals(0, replicaSets.size)

0 commit comments

Comments
 (0)