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 {
1111 MessageReceivedEvent ,
1212 MessageSentEvent ,
1313 MessageWasReadAtChangedEvent ,
14+ OwnSharedAttributeDeletedByOwnerEvent ,
1415 OwnSharedAttributeSucceededEvent ,
1516 PeerDeletionCancelledEvent ,
1617 PeerToBeDeletedEvent ,
@@ -448,6 +449,7 @@ describe("Postponed Notifications via Messages", () => {
448449
449450 const postponedMessages = await syncUntilHasMessages ( client5 . transport ) ;
450451 expect ( postponedMessages ) . toHaveLength ( 1 ) ;
452+ await client5 . eventBus . waitForRunningEventHandlers ( ) ;
451453 const postponedNotification = await client5 . consumption . notifications . getNotification ( { id : notificationId . toString ( ) } ) ;
452454 expect ( postponedNotification ) . toBeSuccessful ( ) ;
453455 } ) ;
@@ -508,6 +510,8 @@ describe("Postponed Notifications via Messages", () => {
508510 const postponedDeletionNotification = await client5 . consumption . notifications . getNotification ( { id : notifyAboutDeletionResult . notificationId } ) ;
509511 expect ( postponedDeletionNotification ) . toBeSuccessful ( ) ;
510512
513+ await client5 . eventBus . waitForEvent ( OwnSharedAttributeDeletedByOwnerEvent ) ;
514+
511515 const peerSharedIdentityAttribute = ( await client5 . consumption . attributes . getAttribute ( { id : ownSharedIdentityAttribute . id } ) ) . value ;
512516 assert ( peerSharedIdentityAttribute . succeededBy ) ;
513517 assert ( peerSharedIdentityAttribute . deletionInfo ?. deletionDate ) ;
You can’t perform that action at this time.
0 commit comments