diff --git a/AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginIntegrationTests/DataStoreConsecutiveUpdatesTests.swift b/AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginIntegrationTests/DataStoreConsecutiveUpdatesTests.swift index eb21319b2e..c9438fb932 100644 --- a/AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginIntegrationTests/DataStoreConsecutiveUpdatesTests.swift +++ b/AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginIntegrationTests/DataStoreConsecutiveUpdatesTests.swift @@ -135,7 +135,7 @@ class DataStoreConsecutiveUpdatesTests: SyncEngineIntegrationTestBase { return } - if mutationEvent.version == 1 { + if mutationEvent.mutationType == MutationEvent.MutationType.create.rawValue { XCTAssertEqual(post, newPost) }