Skip to content

Commit d20ab4d

Browse files
authored
Fix GraphQL test (#9128)
fix CompletableFuture call
1 parent 16eee52 commit d20ab4d

File tree

1 file changed

+1
-1
lines changed
  • dd-java-agent/instrumentation/graphql-java/graphql-java-20.0/src/test/groovy

1 file changed

+1
-1
lines changed

dd-java-agent/instrumentation/graphql-java/graphql-java-20.0/src/test/groovy/GraphQLTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ abstract class GraphQLTest extends VersionedNamingTestBase {
7878
.type(newTypeWiring("Book").dataFetcher("year", new DataFetcher<CompletionStage<Integer>>() {
7979
@Override
8080
CompletionStage<Integer> get(DataFetchingEnvironment environment) throws Exception {
81-
return CompletableFuture.completedStage(2015)
81+
return CompletableFuture.completedFuture(2015)
8282
}
8383
}))
8484
.build()

0 commit comments

Comments
 (0)