File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
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 @@ -191,9 +191,12 @@ void createCollectionWithSmartJoinAttribute(ArangoDatabase db) {
191191 assumeTrue (isEnterprise ());
192192 assumeTrue (isCluster ());
193193
194+ String fooName = "collection-" + rnd ();
195+ db .collection (fooName ).create ();
196+
194197 String name = "collection-" + rnd ();
195198 final CollectionEntity result = db .createCollection (name ,
196- new CollectionCreateOptions ().smartJoinAttribute ("test123" ).shardKeys ("_key:" ));
199+ new CollectionCreateOptions ().smartJoinAttribute ("test123" ).distributeShardsLike ( fooName ). shardKeys ("_key:" ));
197200 assertThat (result ).isNotNull ();
198201 assertThat (result .getId ()).isNotNull ();
199202 assertThat (db .collection (name ).getProperties ().getSmartJoinAttribute ()).isEqualTo ("test123" );
You can’t perform that action at this time.
0 commit comments