1
0
Fork 0

Bug fix in setUp function

This commit is contained in:
Esteban Lombeyda 2014-06-24 10:58:51 +02:00
parent cc041c4851
commit 357183ce3e
1 changed files with 2 additions and 2 deletions

View File

@ -103,6 +103,7 @@ function readOnlyDatabaseSuite () {
setUp : function () {
db = require("internal").db;
db._drop("testCol");
collection = db._createDocumentCollection("testCol");
collection.save({_key: "testDocKey", a: 2 });
db._changeMode("ReadOnly");
@ -110,9 +111,8 @@ function readOnlyDatabaseSuite () {
tearDown : function () {
try {
db._changeMode("Normal");
collection.drop("testCol");
collection.drop();
} catch (e) {
print(e);
}
},