We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0cd723 commit c8a0773Copy full SHA for c8a0773
src/test/com/mongodb/DBPortTest.java
@@ -18,6 +18,7 @@
18
package com.mongodb;
19
20
import com.mongodb.util.TestCase;
21
+import org.testng.SkipException;
22
import org.testng.annotations.Test;
23
24
import java.io.IOException;
@@ -29,6 +30,10 @@ public class DBPortTest extends TestCase {
29
30
@Test
31
@SuppressWarnings("deprecation")
32
public void testAuthentication() throws IOException {
33
+ if (serverIsAtLeastVersion(2.5)) {
34
+ throw new SkipException("Authentication tests skipped for 2.5 and up");
35
+ }
36
+
37
Mongo m = new MongoClient();
38
DB db1 = m.getDB("DBPortTest1");
39
DB db2 = m.getDB("DBPortTest2");
0 commit comments