diff options
Diffstat (limited to 'jstests/core/long_index_rename.js')
-rw-r--r-- | jstests/core/long_index_rename.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/long_index_rename.js b/jstests/core/long_index_rename.js index 718d0bd09aa..27517ac8e5a 100644 --- a/jstests/core/long_index_rename.js +++ b/jstests/core/long_index_rename.js @@ -14,4 +14,4 @@ t.createIndex({a:1}, {name: "aaa"}); var result = t.createIndex({a:1}, {name: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}); assert( !result.ok ); -assert( result.getWriteError().errmsg.indexOf( "too long" ) >= 0 ); +assert( result.errmsg.indexOf( "too long" ) >= 0 ); |