Deprecated options should be ignored if replacement exists

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      diff --git a/tests/json/connection_uri/valid-warnings.json b/tests/json/connection_uri/valid-warnings.json
      index 507c6d3..385f024 100644
      --- a/tests/json/connection_uri/valid-warnings.json
      +++ b/tests/json/connection_uri/valid-warnings.json
      @@ -14,23 +14,6 @@
             ],
             "auth": null,
             "options": null
      -    },
      -    {
      -      "description": "Deprecated (or unknown) options are ignored if replacement exists",
      -      "uri": "mongodb://example.com/?wtimeout=5&wtimeoutMS=10",
      -      "valid": true,
      -      "warning": true,
      -      "hosts": [
      -        {
      -          "type": "hostname",
      -          "host": "example.com",
      -          "port": null
      -        }
      -      ],
      -      "auth": null,
      -      "options": {
      -        "wtimeoutms": 10
      -      }
           }
         ]
       }
      

      This does actually seem like a bug in the spec tests as we don't actually support wtimeout at all..

            Assignee:
            Hannes Magnusson (Inactive)
            Reporter:
            Hannes Magnusson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: