...

Text file src/go.mongodb.org/mongo-driver/testdata/uri-options/single-threaded-options.yml

Documentation: go.mongodb.org/mongo-driver/testdata/uri-options

     1tests:
     2    -
     3        description: "Valid options specific to single-threaded drivers are parsed correctly"
     4        uri: "mongodb://example.com/?serverSelectionTryOnce=false"
     5        valid: true
     6        warning: false
     7        hosts: ~
     8        auth: ~
     9        options:
    10            serverSelectionTryOnce: false
    11    -
    12        description: "Invalid serverSelectionTryOnce causes a warning"
    13        uri: "mongodb://example.com/?serverSelectionTryOnce=invalid"
    14        valid: true
    15        warning: true
    16        hosts: ~
    17        auth: ~
    18        options: {}

View as plain text