diff --git a/packages/apollo-server-integration-testsuite/src/ApolloServer.ts b/packages/apollo-server-integration-testsuite/src/ApolloServer.ts index 4f8d1cbb474..085fe21b683 100644 --- a/packages/apollo-server-integration-testsuite/src/ApolloServer.ts +++ b/packages/apollo-server-integration-testsuite/src/ApolloServer.ts @@ -3356,9 +3356,9 @@ export function testApolloServer( 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 () => {