Skip to content

Commit c8a0773

Browse files
committed
One more auth test to skip for 2.5 and up.
1 parent e0cd723 commit c8a0773

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/com/mongodb/DBPortTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package com.mongodb;
1919

2020
import com.mongodb.util.TestCase;
21+
import org.testng.SkipException;
2122
import org.testng.annotations.Test;
2223

2324
import java.io.IOException;
@@ -29,6 +30,10 @@ public class DBPortTest extends TestCase {
2930
@Test
3031
@SuppressWarnings("deprecation")
3132
public void testAuthentication() throws IOException {
33+
if (serverIsAtLeastVersion(2.5)) {
34+
throw new SkipException("Authentication tests skipped for 2.5 and up");
35+
}
36+
3237
Mongo m = new MongoClient();
3338
DB db1 = m.getDB("DBPortTest1");
3439
DB db2 = m.getDB("DBPortTest2");

0 commit comments

Comments
 (0)