8000 Bugfix/early out invalid links in view creation by maierlars · Pull Request #6502 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Bugfix/early out invalid links in view creation #6502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 17, 2018
Prev Previous commit
Next Next commit
Added test for cluster view creation with links.
  • Loading branch information
lamai93 committed Sep 14, 2018
commit 2e0c2938dfbcda0d87af25ad682a9ea74ec22329
14 changes: 14 additions & 0 deletions tests/js/common/aql/aql-view-arangosearch-ddl-cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@ function IResearchFeatureDDLTestSuite () {
}
},

testStressAddRemoveViewWithDirectLinks : function() {
db._drop("TestCollection0");
db._dropView("TestView");
db._create("TestCollection0");
for (let i = 0; i < 100; ++i) {
db._createView("TestView", "arangosearch", {links:{"TestCollection0":{}}});
var view = db._view("TestView");
assertTrue(null != view);
assertEqual(view.properties().links.length, 1);
db._dropView("TestView");
assertTrue(null == db._view("TestView"));
}
},

testStressAddRemoveViewWithLink : function() {
db._drop("TestCollection0");
db._dropView("TestView");
Expand Down
0