This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch 8.1.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 91603cb1332805c98471bf8a2d46bc740f3641ec
Author: James Daugherty <[email protected]>
AuthorDate: Thu Oct 22 10:38:58 2026 -0400

    [skip tests] Use the Spring context CommandSpec provides in 
CommandSpecBuildFailureSpec
    
    The spec merged up from 7.0.x started a Micronaut ApplicationContext of its 
own. On this branch the
    Forge CLI is a Grails application and CommandSpec already holds the shared 
Spring context that
    CommandFixture reads through getBeanContext(), so the field and its import 
go.
    
    (cherry picked from commit 083ff519fba9572c4720f8a699ec273088e89cd7)
---
 .../groovy/org/grails/forge/cli/CommandSpecBuildFailureSpec.groovy | 7 -------
 1 file changed, 7 deletions(-)

diff --git 
a/grails-forge/grails-forge-cli/src/test/groovy/org/grails/forge/cli/CommandSpecBuildFailureSpec.groovy
 
b/grails-forge/grails-forge-cli/src/test/groovy/org/grails/forge/cli/CommandSpecBuildFailureSpec.groovy
index 8b018ad1a3..4bc24e5de1 100644
--- 
a/grails-forge/grails-forge-cli/src/test/groovy/org/grails/forge/cli/CommandSpecBuildFailureSpec.groovy
+++ 
b/grails-forge/grails-forge-cli/src/test/groovy/org/grails/forge/cli/CommandSpecBuildFailureSpec.groovy
@@ -19,10 +19,7 @@
 
 package org.grails.forge.cli
 
-import io.micronaut.context.ApplicationContext
 import org.grails.forge.application.ApplicationType
-import spock.lang.AutoCleanup
-import spock.lang.Shared
 
 /**
  * Gradle writes a build's failure report to stderr, so a failed generated 
build is reported
@@ -35,10 +32,6 @@ class CommandSpecBuildFailureSpec extends CommandSpec 
implements CommandFixture
     // failure report to a pipe nobody reads blocks on it instead of exiting.
     private static final int FAILURE_MESSAGE_LENGTH = 70000
 
-    @Shared
-    @AutoCleanup
-    ApplicationContext beanContext = ApplicationContext.run()
-
     void 'a generated build that fails is reported with its failure report 
instead of waiting out the poll budget'() {
         given: 'a generated project whose build fails while configuring, with 
a report larger than a pipe buffer'
         generateProject(ApplicationType.WEB)

Reply via email to