diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2014-02-19 12:45:53 -0500 |
---|---|---|
committer | Matt Kangas <matt.kangas@mongodb.com> | 2014-03-03 22:54:10 -0500 |
commit | 3660343e0b4627d2fee4afb89b74d32644d16d18 (patch) | |
tree | ffa571e0b73ce56d73c2ae23f458f0db772ef782 /jstests/long_index_rename.js | |
parent | 9fae141a1f3fe652fa6002e47722c5ceb051cffb (diff) | |
download | mongo-3660343e0b4627d2fee4afb89b74d32644d16d18.tar.gz |
SERVER-12127 migrate js tests to jscore suite when not related to writes
Migrate js tests starting from j-z.
Include SERVER-12920 Update use_power_of_2.js
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Diffstat (limited to 'jstests/long_index_rename.js')
-rw-r--r-- | jstests/long_index_rename.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/jstests/long_index_rename.js b/jstests/long_index_rename.js deleted file mode 100644 index 41e1bfd4a3b..00000000000 --- a/jstests/long_index_rename.js +++ /dev/null @@ -1,18 +0,0 @@ -// SERVER-7720 Building an index with a too-long name should always fail -// Formerly, we would allow an index that already existed to be "created" with too long a name, -// but this caused secondaries to crash when replicating what should be a bad createIndex command. -// Here we test that the too-long name is rejected in this situation as well - -t = db.long_index_rename; -t.drop(); - -for (i = 1; i < 10; i++) { - t.save({a:i}); -} - -t.createIndex({a:1}, {name: "aaa"}); -t.createIndex({a:1}, {name: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + - "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}); -var result = db.getLastErrorObj(); -assert( result.code >= 0 ); -assert( result.err.indexOf( "too long" ) >= 0 ); |