File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,16 @@ public static class CanCommandBeSentToSecondary
30
30
private static Func < BsonDocument , bool > __delegate = DefaultImplementation ;
31
31
private static HashSet < string > __secondaryOkCommands = new HashSet < string > ( StringComparer . InvariantCultureIgnoreCase )
32
32
{
33
- "group" ,
34
33
"aggregate" ,
35
34
"collStats" ,
36
35
"dbStats" ,
37
36
"count" ,
38
37
"distinct" ,
39
38
"geoNear" ,
40
39
"geoSearch" ,
41
- "geoWalk"
40
+ "geoWalk" ,
41
+ "group" ,
42
+ "text"
42
43
} ;
43
44
44
45
// public static properties
Original file line number Diff line number Diff line change @@ -39,12 +39,17 @@ public void TestSetDelegate()
39
39
CanCommandBeSentToSecondary . Delegate = CanCommandBeSentToSecondary . DefaultImplementation ; // reset Delegate
40
40
}
41
41
42
- [ TestCase ( "group" , true ) ]
43
42
[ TestCase ( "aggregate" , true ) ]
43
+ [ TestCase ( "collStats" , true ) ]
44
+ [ TestCase ( "dbStats" , true ) ]
45
+ [ TestCase ( "count" , true ) ]
46
+ [ TestCase ( "distinct" , true ) ]
47
+ [ TestCase ( "geoNear" , true ) ]
44
48
[ TestCase ( "geoSearch" , true ) ]
45
- [ TestCase ( "blah" , false ) ]
49
+ [ TestCase ( "geoWalk" , true ) ]
50
+ [ TestCase ( "group" , true ) ]
51
+ [ TestCase ( "text" , true ) ]
46
52
[ TestCase ( "foo" , false ) ]
47
- [ TestCase ( "bar" , false ) ]
48
53
[ TestCase ( "mapreduce" , false ) ]
49
54
public void TestCanSendCommandToSecondary ( string command , bool expectedResult )
50
55
{
You can’t perform that action at this time.
0 commit comments