Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1330

Fix test_synchronize_error_remote

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: Tests

      Description

      ______________ TestSynchronization.test_synchronize_error_remote ______________
      
      self = <tests.test_synchronization.TestSynchronization testMethod=test_synchronize_error_remote>
      
          @pytest.mark.randombug("NXDRIVE-0", condition=True, mode="STRICT")
          def test_synchronize_error_remote(self):
              path = "/" + self.workspace_title + "/test.odt"
              remote = self.remote_document_client_1
          
              self.engine_1.remote = RemoteTest(
                  pytest.nuxeo_url,
                  self.user_1,
                  "nxdrive-test-administrator-device",
                  pytest.version,
                  password=self.password_1,
              )
              self.engine_1.remote.make_download_raise(HTTPError(status=400, message="Mock"))
              remote.make_file("/", "test.odt", content=b"Some content.")
              self.engine_1.start()
              self.wait_sync(wait_for_async=True, fail_if_timeout=False)
              self.engine_1.stop()
              pair = self.engine_1.get_dao().get_state_from_local(path)
      >       assert pair.error_count == 4
      E       AssertionError: assert 1 == 4
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h