更新时间:2023-08-27 15:35:52
感谢user1690588,我发现了问题. Grails IntegrationSpec IllegalStateException 给了我一个提示:探针不是在测试中失败,而是在测试中过去了!
Thanks to user1690588 I found the problem. Grails IntegrationSpec IllegalStateException gave me the clue: the probem was not in the test which failed, but in the test which passed!
基本上,ParamIntegrationSpec测试具有:
Basically, the ParamIntegrationSpec test had:
@TestFor(ParamService)
这将终止所有后续测试.我不知道TestFor做什么,只在所有示例中都看到了.
This kills any subsequent test. I have no idea what TestFor does, only seen it in all examples.
要修复,只需从工作测试中删除该行即可.
To fix, just removed that line from the working test.