summaryrefslogtreecommitdiff
path: root/jstests/core/dbcase2.js
diff options
context:
space:
mode:
authorYunhe (John) Wang <yunhe.wang@mongodb.com>2015-09-14 15:30:18 -0400
committerYunhe (John) Wang <yunhe.wang@mongodb.com>2015-09-16 11:31:55 -0400
commitfa12f702ead7919669e21ff9f532c49a8fec27ef (patch)
treec6d47140763f4514f45a227d144529c44b628542 /jstests/core/dbcase2.js
parent33e1ddbb9f69d2a2551246caf38448181e1c6b1f (diff)
downloadmongo-fa12f702ead7919669e21ff9f532c49a8fec27ef.tar.gz
SERVER-11735 Changed dbcase tests to detect write error instead of explicit error code
Diffstat (limited to 'jstests/core/dbcase2.js')
-rw-r--r--jstests/core/dbcase2.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/dbcase2.js b/jstests/core/dbcase2.js
index 937527e752e..553db73147b 100644
--- a/jstests/core/dbcase2.js
+++ b/jstests/core/dbcase2.js
@@ -8,6 +8,6 @@ assert.eq(1, resultLower.nInserted);
var resultUpper = dbUpperCase.c.insert({});
assert.eq(0, resultUpper.nInserted);
-assert.eq(13297, resultUpper.getWriteError().code);
+assert.writeError(resultUpper);
assert.eq( -1, db.getMongo().getDBNames().indexOf( "dbcase2test_dbnameA" ) );