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 28, 2018
1 parent 97746f8 commit 0ff54e9
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 0ff54e9

Please sign in to comment.