Skip to content

Commit 5b1ccbc

Browse files
committed
wip
1 parent ed77307 commit 5b1ccbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/signals/signals/src/core/emitter/__tests__/signal-emitter.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ describe(SignalEmitter, () => {
338338

339339
expect(loadSpy1).toHaveBeenCalledTimes(1)
340340
expect(processSpy1).toHaveBeenCalledWith(mockSignal)
341-
342-
// Subscriber 2 has an async load method, but it should not block the processing of signals for subscriber 1
341+
// Subscriber 1 loads immediately and Subscriber 2 takes a while, but they shouldn't block eachother
343342
expect(loadSpy2).toHaveBeenCalledTimes(1)
344343
expect(processSpy2).not.toHaveBeenCalled()
345344

345+
// Subscriber 2's load method should be resolved, so it should process the signal
346346
await sleep(50)
347347
expect(processSpy2).toHaveBeenCalledTimes(1)
348348
})

0 commit comments

Comments
 (0)