### Issue description Copied from https://github.com/grails/grails-async/issues/164 https://github.com/apache/grails-core/blob/7.0.x/grails-test-examples/async-events-pubsub-demo/src/integration-test/groovy/pubsub/demo/TaskControllerSpec.groovy#L33-L43