jdaugherty commented on code in PR #15677:
URL: https://github.com/apache/grails-core/pull/15677#discussion_r3343532093
##########
grails-data-graphql/plugin/src/main/groovy/org/grails/gorm/graphql/plugin/testing/GraphQLSpec.groovy:
##########
@@ -37,7 +38,15 @@ trait GraphQLSpec {
GraphQLRequestHelper getGraphQL() {
if (_graphql == null) {
- _graphql = new GraphQLRequestHelper(rest: RxHttpClient.create(new
URL(getServerUrl())))
+ StringHttpMessageConverter stringConverter = new
StringHttpMessageConverter()
+ stringConverter.supportedMediaTypes = [MediaType.ALL]
+ _graphql = new GraphQLRequestHelper(rest: RestClient.builder()
+ .baseUrl(getServerUrl())
+ .messageConverters({ converters ->
+ converters.clear()
Review Comment:
I'm assuming these changes were due to the upgrade? The .clear() caught me
off guard since you're creating a new helper, I assumed there isn't cached
state somewhere?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]