File tree 1 file changed +5
-0
lines changed
driver/src/test/functional/com/mongodb
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import java .net .UnknownHostException ;
22
22
23
+ import static com .mongodb .ClusterFixture .clusterIsType ;
24
+ import static com .mongodb .connection .ClusterType .SHARDED ;
23
25
import static org .hamcrest .CoreMatchers .hasItems ;
24
26
import static org .junit .Assert .assertFalse ;
25
27
import static org .junit .Assert .assertThat ;
26
28
import static org .junit .Assert .assertTrue ;
29
+ import static org .junit .Assume .assumeFalse ;
27
30
28
31
public class MongoMethodsTest extends DatabaseTestCase {
29
32
@ Test
@@ -42,6 +45,8 @@ public void shouldGetDatabaseNames() throws UnknownHostException {
42
45
43
46
@ Test
44
47
public void shouldLockAndUnlock () {
48
+ assumeFalse (clusterIsType (SHARDED ));
49
+
45
50
assertFalse (getClient ().isLocked ());
46
51
47
52
getClient ().fsyncAndLock ();
You can’t perform that action at this time.
0 commit comments