SyncSession::wait_for_upload_completion does not return error if session is invalid

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      While trying to write some unit tests for Kotlin around waiting for upload and download I discovered something that looks like a bug.

      1. Open a synchronized Realm
      2. Restart Sync on the server using the Admin API, this correctly triggers a session error handler.
      3. Attempt to call SyncSession: wait_for_upload_completion and SyncSession::wait_for_download_completion

      Expected result: I would expect the function to return some kind of error_code in the callback we provide.

      Actual result: It returns succesfully.

              Assignee:
              Jonathan Reams
              Reporter:
              Christian Melchior (Inactive)
              Archiver:
              Marc Greenfield

                Created:
                Updated:
                Resolved:
                Archived: