diff --git a/packages/browser/src/core/buffer/__tests__/index.test.ts b/packages/browser/src/core/buffer/__tests__/index.test.ts index abc819df5..ffa9f67bf 100644 --- a/packages/browser/src/core/buffer/__tests__/index.test.ts +++ b/packages/browser/src/core/buffer/__tests__/index.test.ts @@ -442,10 +442,9 @@ describe(flushAnalyticsCallsInNewTask, () => { ) const buffer = new PreInitMethodCallBuffer(synchronousMethod, asyncMethod) - buffer.push(synchronousMethod, asyncMethod) flushAnalyticsCallsInNewTask(new Analytics({ writeKey: 'abc' }), buffer) await sleep(0) - expect(synchronousMethod.reject).toBeCalled() - expect(asyncMethod.resolve).toBeCalled() + expect(synchronousMethod.reject).toBeCalledTimes(1) + expect(asyncMethod.resolve).toBeCalledTimes(1) }) })