diff --git a/src/integrationTest/kotlin/com/sourcegraph/cody/util/CodyIntegrationTextFixture.kt b/src/integrationTest/kotlin/com/sourcegraph/cody/util/CodyIntegrationTextFixture.kt index 216443f463..1ec0e0c4b8 100644 --- a/src/integrationTest/kotlin/com/sourcegraph/cody/util/CodyIntegrationTextFixture.kt +++ b/src/integrationTest/kotlin/com/sourcegraph/cody/util/CodyIntegrationTextFixture.kt @@ -218,6 +218,11 @@ open class CodyIntegrationTextFixture : BasePlatformTestCase(), LensListener { ) { synchronized(lensSubscribers) { lensSubscribers.removeAll { (checkFunc, future) -> + if (codeLenses.find { it.command?.command == "cody.fixup.codelens.error" } != null) { + future.completeExceptionally(IllegalStateException("Error group shown")) + return@removeAll true + } + val hasLensAppeared = checkFunc(codeLenses) if (hasLensAppeared) future.complete(lensWidgetGroup) hasLensAppeared