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 () {
|
setUp : function () {
|
||||||
db = require("internal").db;
|
db = require("internal").db;
|
||||||
|
db._drop("testCol");
|
||||||
collection = db._createDocumentCollection("testCol");
|
collection = db._createDocumentCollection("testCol");
|
||||||
collection.save({_key: "testDocKey", a: 2 });
|
collection.save({_key: "testDocKey", a: 2 });
|
||||||
db._changeMode("ReadOnly");
|
db._changeMode("ReadOnly");
|
||||||
|
@ -110,9 +111,8 @@ function readOnlyDatabaseSuite () {
|
||||||
tearDown : function () {
|
tearDown : function () {
|
||||||
try {
|
try {
|
||||||
db._changeMode("Normal");
|
db._changeMode("Normal");
|
||||||
collection.drop("testCol");
|
collection.drop();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print(e);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue