Closed vaibhavrdbhat closed 7 months ago
Two things of note:
1) As I stated, this only happens when running the unit tests that run through this code, such as through gradle build
or in IntelliJ. If I build without the tests and then do gradle run
, the application runs successfully! super weird.
2) I tried isolating the error by only passing in queries, then only mutations, then only subscriptions. None of them worked.
Hello 👋 Please provide a link to repository that reproduces the error.
In general Cannot use a ScanResult after it has been closed
would imply you are trying to reuse same classcanner instance for two different tests (e.g. trying to use same instance of SchemaGenerator
to scan different packages).
Closing due to inactivity. If this is still an issue please provide a link to repository that reproduces the error.
Library Version 7.0.2 Describe the bug I'm upgrading my application from version
6.5.+
of this library to7.0.2
. My unit tests that build and test my ktor application fail when running through the setup steps of my ktor module, specifically thetoSchema()
call while making my GraphQL object. Here is the stack trace:To Reproduce The
getGraphQLObject()
method referenced 4 lines from the bottom of the stack trace is this:Expected behavior I mean.... I feel like this should function just as it did prior to the upgrade, but there's probably some subtle bug somewhere in that long list of calls in the
expedia
library.