ng-mocks icon indicating copy to clipboard operation
ng-mocks copied to clipboard

Bug: MockMiddleware{Index}

Open cheng93 opened this issue 6 months ago • 1 comments

Description of the bug

I have thousands of MockMiddleware{Index} not being cleaned up.

An example of the bug

~~Unfortunately I don't have a sample atm~~

https://github.com/cheng93/ng-mocks-reset

Expected vs actual behavior

MockMiddleware{Index} to be destroyed if not in cacheDeclaration

image

Misc

I am on the latest 14.12.1 I haven't been able to update ng-mocks since 14.9.0. Upgrading to 14.10.0 and later gives me this issue.

I get the following CI, but it's fine locally.

image

Instincts to points to memory leak.

This and the other bug reported today, I believe, are the causes.

cheng93 avatar Jan 05 '24 13:01 cheng93