From e94911f4fcfb2fe546ab0fac8b27f90a1d75ed02 Mon Sep 17 00:00:00 2001 From: Di Wu Date: Tue, 2 Jan 2024 14:20:20 -0800 Subject: [PATCH] test(datastore): fix datastore ConsecutiveUpdatesTests --- .../DataStoreConsecutiveUpdatesTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }