Skip to content

Commit cbfb4f0

Browse files
committed
Removed error testing of collection.rename, as this was really a test of the server, and the server behavior has changed for 2.6
Conflicts: src/test/com/mongodb/DBTests.java
1 parent 4cf8a84 commit cbfb4f0

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/test/com/mongodb/DBTests.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,12 @@ public void testRenameAndDrop() throws MongoException {
9292
assertEquals(1, a.find().count());
9393
assertEquals(1, b.find().count());
9494

95-
try {
96-
DBCollection b2 = a.rename(nameb);
97-
assertTrue(false, "Rename to existing collection must fail");
98-
} catch (MongoException e) {
99-
assertEquals(e.getCode(), 10027);
100-
}
101-
10295
DBCollection b2 = a.rename(nameb, true);
10396
assertEquals(0, a.find().count());
10497
assertEquals(1, b.find().count());
10598
assertEquals(1, b2.find().count());
10699

107100
assertEquals(b.getName(), b2.getName());
108-
109101
}
110102

111103
// @Test

0 commit comments

Comments
 (0)