File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -712,15 +712,12 @@ class Topology extends EventEmitter {
712
712
return this . s . clientInfo ;
713
713
}
714
714
715
- // Legacy methods for compat with old topology types
716
715
isConnected ( ) {
717
- // console.log('not implemented: `isConnected`');
718
- return true ;
716
+ return this . s . state === STATE_CONNECTED ;
719
717
}
720
718
721
719
isDestroyed ( ) {
722
- // console.log('not implemented: `isDestroyed`');
723
- return false ;
720
+ return this . s . state === STATE_CLOSED ;
724
721
}
725
722
726
723
unref ( ) {
Original file line number Diff line number Diff line change 64
64
"scripts" : {
65
65
"atlas" : " node ./test/atlas_connectivity_tests.js" ,
66
66
"test" : " npm run lint && mocha --recursive test/functional test/unit test/core" ,
67
+ "test-nolint" : " mocha --recursive test/functional test/unit test/core" ,
67
68
"coverage" : " istanbul cover mongodb-test-runner -- -t 60000 test/core test/unit test/functional" ,
68
69
"lint" : " eslint lib test" ,
69
70
"format" : " prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'" ,
You can’t perform that action at this time.
0 commit comments