mongodb-js / data-service

The MongoDB Data Service
Apache License 2.0
7 stars 4 forks source link

fix: Fix isWritable and isMongos check and fix tests for the properties #276

Closed gribnoysup closed 3 years ago

gribnoysup commented 3 years ago

Description

Fix tests that were checking isMongos and isWritable props on the native client and fix the methods that define those properties

Checklist

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.

Open Questions

Dependents

Types of changes