mirror of https://gitee.com/bigwinds/arangodb
Bug fix in setUp function
This commit is contained in:
parent
cc041c4851
commit
357183ce3e
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue