File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
tests/MongoDB.Driver.Tests Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 24
24
using MongoDB . Bson . TestHelpers . XunitExtensions ;
25
25
using MongoDB . Driver . Core . Bindings ;
26
26
using MongoDB . Driver . Core . Clusters ;
27
+ using MongoDB . Driver . Core . Misc ;
27
28
using MongoDB . Driver . Core . Operations ;
28
29
using MongoDB . Driver . Core . TestHelpers . XunitExtensions ;
29
30
using MongoDB . Driver . Tests ;
@@ -554,6 +555,10 @@ public void ListCollectionNames_should_return_expected_result(
554
555
[ Values ( false , true ) ] bool async)
555
556
{
556
557
RequireServer . Check ( ) ;
558
+ if ( usingSession )
559
+ {
560
+ RequireServer. Check ( ) . VersionGreaterThanOrEqualTo ( "3.6.0" ) ;
561
+ }
557
562
558
563
var collectionNames = Enumerable . Range ( 1 , numberOfCollections ) . Select ( n => $ "c{ n } ") . ToArray ( ) ;
559
564
@@ -592,7 +597,7 @@ public void ListCollectionNames_should_return_expected_result(
592
597
}
593
598
594
599
var actualCollectionNames = cursor. ToList ( ) ;
595
- actualCollectionNames. Should ( ) . BeEquivalentTo ( collectionNames ) ;
600
+ actualCollectionNames. Where ( n => n != "system.indexes" ) . Should ( ) . BeEquivalentTo ( collectionNames ) ;
596
601
}
597
602
}
598
603
You can’t perform that action at this time.
0 commit comments