Skip to content

Commit

Permalink
Check for error group in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkondratek committed Aug 6, 2024
1 parent ebe8ac7 commit 820c31a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 820c31a

Please sign in to comment.