Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1357

Add test and implementation for max staleness of -1 specified in URI

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc0
    • Component/s: Testing
    • Labels:
      None
    • Story Points:
      0.5

      Description

      We should add a test that ensures that setting a max staleness of -1 in the URI causes our getter to return nullopt rather than -1.

      Edit read_preference to be able to set max_staleness to -1 and make sure that if is -1 the URI getter returns a nullopt instead of -1.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              isabella.siu Isabella Siu (Inactive)
              Reporter:
              sam.rossi Samuel Rossi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: