You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginIntegrationTests/DataStoreConsecutiveUpdatesTests.swift
+10-30Lines changed: 10 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,6 @@ class DataStoreConsecutiveUpdatesTests: SyncEngineIntegrationTestBase {
43
43
updatedPost.title ="MyUpdatedPost"
44
44
updatedPost.content ="This is my updated post."
45
45
46
-
letsaveSyncReceived=expectation(description:"Received create mutation event on subscription for Post")
47
46
letupdateSyncReceived=expectation(description:"Received update mutation event on subscription for Post")
48
47
49
48
lethubListener=Amplify.Hub.listen(
@@ -58,19 +57,15 @@ class DataStoreConsecutiveUpdatesTests: SyncEngineIntegrationTestBase {
58
57
return
59
58
}
60
59
61
-
if mutationEvent.mutationType==GraphQLMutationType.create.rawValue{
60
+
if mutationEvent.version==1{
62
61
XCTAssertEqual(post, newPost)
63
-
XCTAssertEqual(mutationEvent.version,1)
64
-
saveSyncReceived.fulfill()
65
-
return
66
62
}
67
63
68
-
if mutationEvent.mutationType==GraphQLMutationType.update.rawValue{
0 commit comments