diff --git a/src/cdk/testing/change-detection.ts b/src/cdk/testing/change-detection.ts index 648c01a9236a..686084544651 100644 --- a/src/cdk/testing/change-detection.ts +++ b/src/cdk/testing/change-detection.ts @@ -69,7 +69,7 @@ async function batchChangeDetection(fn: () => Promise, triggerBeforeAndAft // If nothing is handling change detection batching, install the default handler. if (!autoChangeDetectionSubscription) { - autoChangeDetectionSubject.subscribe(defaultAutoChangeDetectionHandler); + handleAutoChangeDetectionStatus(defaultAutoChangeDetectionHandler); } if (triggerBeforeAndAfter) {