From 508c555ce2d2ab0a7f47505f02ad9988e1c2f91c Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 13 May 2020 11:27:22 +0200 Subject: [PATCH] test: update language service module resolution cache (#36989) With this change we update the expect of the `module resolution cache` were in the second count with cache the `fileExists` is called less then 700 times. PR Close #36989 --- packages/language-service/test/reflector_host_spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/language-service/test/reflector_host_spec.ts b/packages/language-service/test/reflector_host_spec.ts index 39aa4cc922..6f1cfff208 100644 --- a/packages/language-service/test/reflector_host_spec.ts +++ b/packages/language-service/test/reflector_host_spec.ts @@ -59,8 +59,8 @@ describe('reflector_host_spec', () => { // This resolves all Angular directives in the project. ngLSHost.getAnalyzedModules(); const secondCount = spy.calls.count(); - expect(secondCount).toBeGreaterThan(700); - expect(secondCount).toBeLessThan(800); + expect(secondCount).toBeGreaterThan(500); + expect(secondCount).toBeLessThan(600); spy.calls.reset(); // Third count is due to recompution after the program changes.