File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/runtime/test/transport Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
MessageReceivedEvent ,
12
12
MessageSentEvent ,
13
13
MessageWasReadAtChangedEvent ,
14
+ OwnSharedAttributeDeletedByOwnerEvent ,
14
15
OwnSharedAttributeSucceededEvent ,
15
16
PeerDeletionCancelledEvent ,
16
17
PeerToBeDeletedEvent ,
@@ -448,6 +449,7 @@ describe("Postponed Notifications via Messages", () => {
448
449
449
450
const postponedMessages = await syncUntilHasMessages ( client5 . transport ) ;
450
451
expect ( postponedMessages ) . toHaveLength ( 1 ) ;
452
+ await client5 . eventBus . waitForRunningEventHandlers ( ) ;
451
453
const postponedNotification = await client5 . consumption . notifications . getNotification ( { id : notificationId . toString ( ) } ) ;
452
454
expect ( postponedNotification ) . toBeSuccessful ( ) ;
453
455
} ) ;
@@ -508,6 +510,8 @@ describe("Postponed Notifications via Messages", () => {
508
510
const postponedDeletionNotification = await client5 . consumption . notifications . getNotification ( { id : notifyAboutDeletionResult . notificationId } ) ;
509
511
expect ( postponedDeletionNotification ) . toBeSuccessful ( ) ;
510
512
513
+ await client5 . eventBus . waitForEvent ( OwnSharedAttributeDeletedByOwnerEvent ) ;
514
+
511
515
const peerSharedIdentityAttribute = ( await client5 . consumption . attributes . getAttribute ( { id : ownSharedIdentityAttribute . id } ) ) . value ;
512
516
assert ( peerSharedIdentityAttribute . succeededBy ) ;
513
517
assert ( peerSharedIdentityAttribute . deletionInfo ?. deletionDate ) ;
You can’t perform that action at this time.
0 commit comments