From d4192c16dab865cf3e37f4762107f751040b78b3 Mon Sep 17 00:00:00 2001 From: Remy Korrelboom Date: Sat, 17 Nov 2018 11:45:04 +0100 Subject: [PATCH] feat(fastify) Fix integration test for node 10 #626 --- .../src/__tests__/fastifyApollo.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/apollo-server-fastify/src/__tests__/fastifyApollo.test.ts b/packages/apollo-server-fastify/src/__tests__/fastifyApollo.test.ts index 65ffa2b9350..c85c0e44b83 100644 --- a/packages/apollo-server-fastify/src/__tests__/fastifyApollo.test.ts +++ b/packages/apollo-server-fastify/src/__tests__/fastifyApollo.test.ts @@ -14,10 +14,9 @@ async function createApp(options: CreateAppOptions = {}) { (options.graphqlOptions as Config) || { schema: Schema }, ); - (async function() { - app.register(await server.createHandler()); - await app.listen(); - })(); + app.register(await server.createHandler()); + await app.listen(); + return app.server; }