1
0
Fork 0

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:
Wilfried Goesgens 2019-11-29 14:14:23 +01:00 committed by KVS85
parent a59b240e63
commit 4ad2ff1f75
1 changed files with 22 additions and 17 deletions

View File

@ -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');
}
}
}; };
} }