Skip to content

Commit

Permalink
Revert "Update test that checked number of times onSchemaChange unsub…
Browse files Browse the repository at this point in the history
…scribe has been called."

This reverts commit 3b9fa29.
  • Loading branch information
sachindshinde committed Jun 22, 2021
1 parent 0d2d379 commit 701d482
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3356,9 +3356,9 @@ export function testApolloServer<AS extends ApolloServerBase>(
const { gateway, triggers } = makeGatewayMock({ unsubscribeSpy });
triggers.resolveLoad({ schema, executor: () => {} });
await createApolloServer({ gateway, subscriptions: false });
expect(unsubscribeSpy).toHaveBeenCalledTimes(1);
expect(unsubscribeSpy).not.toHaveBeenCalled();
await stopServer();
expect(unsubscribeSpy).toHaveBeenCalledTimes(2);
expect(unsubscribeSpy).toHaveBeenCalled();
});

it('waits until gateway has resolved a schema to respond to queries', async () => {
Expand Down

0 comments on commit 701d482

Please sign in to comment.