File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
driver/src/test/functional/com/mongodb Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2020
2121import java .net .UnknownHostException ;
2222
23+ import static com .mongodb .ClusterFixture .clusterIsType ;
24+ import static com .mongodb .connection .ClusterType .SHARDED ;
2325import static org .hamcrest .CoreMatchers .hasItems ;
2426import static org .junit .Assert .assertFalse ;
2527import static org .junit .Assert .assertThat ;
2628import static org .junit .Assert .assertTrue ;
29+ import static org .junit .Assume .assumeFalse ;
2730
2831public class MongoMethodsTest extends DatabaseTestCase {
2932 @ Test
@@ -42,6 +45,8 @@ public void shouldGetDatabaseNames() throws UnknownHostException {
4245
4346 @ Test
4447 public void shouldLockAndUnlock () {
48+ assumeFalse (clusterIsType (SHARDED ));
49+
4550 assertFalse (getClient ().isLocked ());
4651
4752 getClient ().fsyncAndLock ();
You can’t perform that action at this time.
0 commit comments