Skip to content

Commit

Permalink
feat(fastify) Fix integration test for node 10 apollographql#626
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorrelboom committed Nov 19, 2018
1 parent 4910d63 commit 08d8a63
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 08d8a63

Please sign in to comment.