Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
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 |
102174,5 | NCBC-1778: Improve SendWithDurabilityAsync testability using mocks | master | couchbase-net-client | Status: MERGED | +2 | +1 |