mirror of https://gitee.com/bigwinds/arangodb
Bug fix 3.4/cleanup view (#10590)
* cleanup after test * Update upgrade-data-views-msv3.2.1.js * Update upgrade-data-views-msv3.2.1.js * Update upgrade-data-views-msv3.2.1.js
This commit is contained in:
parent
a59b240e63
commit
4ad2ff1f75
|
@ -47,7 +47,9 @@ function UpgradeData() {
|
||||||
const c = db._collection('LargeCollection');
|
const c = db._collection('LargeCollection');
|
||||||
assertEqual(c.count(), 10000);
|
assertEqual(c.count(), 10000);
|
||||||
|
|
||||||
const v = db._createView('TestView', 'arangosearch', {});
|
let v;
|
||||||
|
try {
|
||||||
|
v = db._createView('TestView', 'arangosearch', {});
|
||||||
const properties = {
|
const properties = {
|
||||||
links: {
|
links: {
|
||||||
'LargeCollection': {
|
'LargeCollection': {
|
||||||
|
@ -70,7 +72,10 @@ function UpgradeData() {
|
||||||
assertEqual(results[2].name, "Name 1116");
|
assertEqual(results[2].name, "Name 1116");
|
||||||
assertEqual(results[3].name, "Name 1117");
|
assertEqual(results[3].name, "Name 1117");
|
||||||
}
|
}
|
||||||
|
finally {
|
||||||
|
db._dropView('TestView');
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue