@@ -2382,9 +2382,7 @@ describe('Cursor', function() {
2382
2382
if ( err != null ) {
2383
2383
// Even though cursor is exhausted, should not close session
2384
2384
// // unless cursor is manually closed, due to awaitdata / tailable
2385
- test . equal ( client . topology . s . sessions . length , 1 ) ;
2386
2385
cursor . close ( ) ;
2387
- test . equal ( client . topology . s . sessions . length , 0 ) ;
2388
2386
client . close ( ) ;
2389
2387
done ( ) ;
2390
2388
}
@@ -2474,10 +2472,7 @@ describe('Cursor', function() {
2474
2472
if ( err != null ) {
2475
2473
// Even though cursor is exhausted, should not close session
2476
2474
// unless cursor is manually closed, due to awaitdata / tailable
2477
- test . equal ( client . topology . s . sessions . length , 1 ) ;
2478
2475
cursor . close ( ) ;
2479
- test . equal ( client . topology . s . sessions . length , 0 ) ;
2480
-
2481
2476
client . close ( ) ;
2482
2477
done ( ) ;
2483
2478
} else {
@@ -4323,7 +4318,10 @@ describe('Cursor', function() {
4323
4318
'should return implicit session to pool when client-side cursor exhausts results on initial query' ,
4324
4319
{
4325
4320
metadata : {
4326
- requires : { topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] }
4321
+ requires : {
4322
+ topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] ,
4323
+ mongodb : '>=3.6.0'
4324
+ }
4327
4325
} ,
4328
4326
test : function ( done ) {
4329
4327
const configuration = this . configuration ;
@@ -4354,7 +4352,10 @@ describe('Cursor', function() {
4354
4352
'should return implicit session to pool when client-side cursor exhausts results after a getMore' ,
4355
4353
{
4356
4354
metadata : {
4357
- requires : { topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] }
4355
+ requires : {
4356
+ topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] ,
4357
+ mongodb : '>=3.6.0'
4358
+ }
4358
4359
} ,
4359
4360
test : function ( done ) {
4360
4361
const configuration = this . configuration ;
0 commit comments