Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1778

Improve SendWithDurabilityAsync testability using mocks

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7.4
    • None
    • None
    • 1

    Description

      SendWithDurabilityAsync internally uses SendWithRetry to dispatch the original request before polling with observe operations to satisfy durability requirements.

      However, the current implementation is not testable because a TaskCompletionSource cannot be passed into SendWithDurabillity, and in turn onto SendWithRetry, so it's not possible to mock the result. Ideally a TCS would be an optional parameter in the same way SendWithRetry exposes for testing.

      Attachments

        For Gerrit Dashboard: NCBC-1778
        # Subject Branch Project Status CR V

        Activity

          There are no comments yet on this issue.

          People

            jmorris Jeff Morris
            mike.goldsmith Michael Goldsmith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty