Skip to content

Commit 7210c95

Browse files
5dlawmicha
authored andcommitted
fix(test): compare model identifier for deletion events (#2752)
1 parent ac23668 commit 7210c95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginLazyLoadTests/LazyLoadBase/AWSDataStoreLazyLoadBaseTest.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class AWSDataStoreLazyLoadBaseTest: XCTestCase {
178178
if event.eventName == dataStoreEvents.outboxMutationProcessed,
179179
let outboxMutationEvent = event.data as? OutboxMutationEvent,
180180
outboxMutationEvent.modelName == model.modelName,
181+
outboxMutationEvent.element.model.identifier == model.identifier,
181182
outboxMutationEvent.element.deleted == true {
182183
Task { await modelSynced.fulfill() }
183184

0 commit comments

Comments
 (0)