Fix tests that were checking isMongos and isWritable props on the native client and fix the methods that define those properties
Checklist
[ ] New tests and/or benchmarks are included
[ ] Documentation is changed or added
Motivation and Context
Spotted that the tests are not running while working on another change, after fixing the tests figured out that the properties are not assigned correctly. Seems like the topology description topologyType is just type now and servers is a Map, not an array as the method expected.
[x] Bugfix
[ ] New feature
[ ] Dependency update
[ ] Misc
Open Questions
Dependents
Types of changes
[ ] Backport Needed
[x] Patch (non-breaking change which fixes an issue)
[ ] Minor (non-breaking change which adds functionality)
[ ] Major (fix or feature that would cause existing functionality to change)
Description
Fix tests that were checking
isMongos
andisWritable
props on the native client and fix the methods that define those propertiesChecklist
Motivation and Context
Spotted that the tests are not running while working on another change, after fixing the tests figured out that the properties are not assigned correctly. Seems like the topology description
topologyType
is justtype
now andservers
is aMap
, not an array as the method expected.Open Questions
Dependents
Types of changes