Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-2151

Fix race in schema migration tests

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      Some of the schema migration tests test the recovery of subscriptions and objects after a schema migration. This requires that the subscriptions and objects are committed when the synchronization session is paused so nothing is uploaded. SyncSession::pause() is used for this, but pause is an async operation so there is a race between pausing the session and uploading the data and subscriptions. SyncSession::shutdown_and_wait() is used instead.

            Assignee:
            daniel.tabacaru@mongodb.com Daniel Tabacaru
            Reporter:
            daniel.tabacaru@mongodb.com Daniel Tabacaru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: