Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gnawf committed Jun 7, 2023
1 parent c67c3a5 commit 25ebffa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/src/main/java/graphql/nadel/engine/util/GraphQLUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ import graphql.nadel.instrumentation.parameters.NadelInstrumentationExecuteOpera
import graphql.nadel.util.ErrorUtil.createGraphQLErrorsFromRawErrors
import graphql.normalized.ExecutableNormalizedField
import graphql.normalized.ExecutableNormalizedOperation
import graphql.normalized.ExecutableNormalizedOperationToAstCompiler
import graphql.normalized.ExecutableNormalizedOperationToAstCompiler.CompilerResult
import graphql.normalized.NormalizedInputValue
import graphql.normalized.VariablePredicate
import graphql.schema.FieldCoordinates
import graphql.schema.GraphQLCodeRegistry
import graphql.schema.GraphQLFieldDefinition
Expand Down Expand Up @@ -556,7 +559,7 @@ fun compileToDocument(
operationName: String?,
topLevelFields: List<ExecutableNormalizedField>,
variablePredicate: VariablePredicate?,
): ExecutableNormalizedOperationToAstCompiler.CompilerResult {
): CompilerResult {
return ExecutableNormalizedOperationToAstCompiler.compileToDocument(
schema,
operationKind,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class ChainedNadelInstrumentationTest : DescribeSpec({
} returns chainedState

every {
params.copy(any(), any(), any(), any(), any())
params.copy(any(), any(), any(), any(), any(), any())
} answers { copyCall ->
val newState = copyCall.invocation.args.singleOfType<InstrumentationState>()
mock { newParams ->
Expand Down Expand Up @@ -372,7 +372,7 @@ class ChainedNadelInstrumentationTest : DescribeSpec({
val paramsCopy = mock<NadelInstrumentationTimingParameters>()
val params = mock<NadelInstrumentationTimingParameters> { params ->
every { params.getInstrumentationState<InstrumentationState>() } returns chainedState
every { params.copy(any(), any(), any(), any(), any()) } returns paramsCopy
every { params.copy(any(), any(), any(), any(), any(), any()) } returns paramsCopy
}

// when
Expand Down

0 comments on commit 25ebffa

Please sign in to comment.