Details
Description
ConfigurationHolder.config seems to be set for the first integration test run and is null from then on (unless mocked using mockConfig). I would expect it to be null for unit tests, but not integration tests. Running the following as an integration test results in testConfigHolder1 passing and testConfigHolder2 failing.
ConfigHolderTests.groovy
import grails.test.* import org.codehaus.groovy.grails.commons.ConfigurationHolder class ConfigHolderTests extends GrailsUnitTestCase { void testConfigHolder1() { assert ConfigurationHolder.config } void testConfigHolder2() { assert ConfigurationHolder.config } }
Attachments
Issue Links
| This issue duplicates: | ||||
| GRAILS-5686 | Integration Testing json response for controller , single test passes but same test in multiple tests fails |
|
|
|
Apologies for being a jira noob as having cloned this issue I find I can't modify it. However, I just ran the attachment in 1.2.0 and it failed so I assume it's regressed or was not fixed in 1.2? Since I couldn't find it anywhere else in jira I created a new issue.
If someone with perms could adjust the Affects Version/s to 1.2 and remove "Fix Version/s" I'd be obliged.