diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/test/clean-up/build-cleaner.spec.ts b/aio/aio-builds-setup/dockerbuild/scripts-js/test/clean-up/build-cleaner.spec.ts index da08166ec3..d2bb81946c 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/test/clean-up/build-cleaner.spec.ts +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/test/clean-up/build-cleaner.spec.ts @@ -88,9 +88,12 @@ describe('BuildCleaner', () => { }); - it('should return a promise', () => { + it('should return a promise', async () => { const promise = cleaner.cleanUp(); expect(promise).toEqual(jasmine.any(Promise)); + + // Do not complete the test and release the spies synchronously, to avoid running the actual implementations. + await promise; });