File tree 1 file changed +0
-21
lines changed
graphql-java-servlet/src/test/groovy/graphql/kickstart/servlet
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -117,11 +117,6 @@ class DataLoaderDispatchingSpec extends Specification {
117
117
mapper. readValue(response. getContentAsByteArray(), List )
118
118
}
119
119
120
- Instrumentation simpleInstrumentation = new SimplePerformantInstrumentation ()
121
- ChainedInstrumentation chainedInstrumentation = new ChainedInstrumentation (Collections . singletonList(simpleInstrumentation))
122
- def simpleSupplier = { simpleInstrumentation }
123
- def chainedSupplier = { chainedInstrumentation }
124
-
125
120
def " batched query with per query context does not batch loads together" () {
126
121
setup :
127
122
configureServlet(ContextSetting . PER_QUERY )
@@ -173,20 +168,4 @@ class DataLoaderDispatchingSpec extends Specification {
173
168
fetchCounterC. get() == 1
174
169
loadCounterC. get() == 2
175
170
}
176
-
177
- def unwrapChainedInstrumentations (Instrumentation instrumentation ) {
178
- if (! instrumentation instanceof ChainedInstrumentation ) {
179
- return Collections . singletonList(instrumentation)
180
- } else {
181
- List<Instrumentation > instrumentations = new ArrayList<> ()
182
- for (Instrumentation current : ((ChainedInstrumentation ) instrumentation). getInstrumentations()) {
183
- if (current instanceof ChainedInstrumentation ) {
184
- instrumentations. addAll(unwrapChainedInstrumentations(current))
185
- } else {
186
- instrumentations. add(current)
187
- }
188
- }
189
- return instrumentations
190
- }
191
- }
192
171
}
You can’t perform that action at this time.
0 commit comments