File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
driver/src/test/java/com/arangodb Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -188,9 +188,12 @@ void createCollectionWithSmartJoinAttribute(ArangoDatabase db) {
188188 assumeTrue (isEnterprise ());
189189 assumeTrue (isCluster ());
190190
191+ String fooName = "collection-" + rnd ();
192+ db .collection (fooName ).create ();
193+
191194 String name = "collection-" + rnd ();
192195 final CollectionEntity result = db .createCollection (name ,
193- new CollectionCreateOptions ().smartJoinAttribute ("test123" ).shardKeys ("_key:" ));
196+ new CollectionCreateOptions ().smartJoinAttribute ("test123" ).distributeShardsLike ( fooName ). shardKeys ("_key:" ));
194197 assertThat (result ).isNotNull ();
195198 assertThat (result .getId ()).isNotNull ();
196199 assertThat (db .collection (name ).getProperties ().getSmartJoinAttribute ()).isEqualTo ("test123" );
You can’t perform that action at this time.
0 commit comments