Skip to content

Commit

Permalink
fix: OwnSharedAttributeDeletedByOwnerNotificationItem not yet processed
Browse files Browse the repository at this point in the history
  • Loading branch information
britsta committed Dec 3, 2024
1 parent 20398db commit 48ffe4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/runtime/test/transport/messages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
MessageReceivedEvent,
MessageSentEvent,
MessageWasReadAtChangedEvent,
OwnSharedAttributeDeletedByOwnerEvent,
OwnSharedAttributeSucceededEvent,
PeerDeletionCancelledEvent,
PeerToBeDeletedEvent,
Expand Down Expand Up @@ -508,6 +509,8 @@ describe("Postponed Notifications via Messages", () => {
const postponedDeletionNotification = await client5.consumption.notifications.getNotification({ id: notifyAboutDeletionResult.notificationId });
expect(postponedDeletionNotification).toBeSuccessful();

await client5.eventBus.waitForEvent(OwnSharedAttributeDeletedByOwnerEvent);

const peerSharedIdentityAttribute = (await client5.consumption.attributes.getAttribute({ id: ownSharedIdentityAttribute.id })).value;
assert(peerSharedIdentityAttribute.succeededBy);
assert(peerSharedIdentityAttribute.deletionInfo?.deletionDate);
Expand Down

0 comments on commit 48ffe4e

Please sign in to comment.