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) {
191
191
assumeTrue (isEnterprise ());
192
192
assumeTrue (isCluster ());
193
193
194
+ String fooName = "collection-" + rnd ();
195
+ db .collection (fooName ).create ();
196
+
194
197
String name = "collection-" + rnd ();
195
198
final CollectionEntity result = db .createCollection (name ,
196
- new CollectionCreateOptions ().smartJoinAttribute ("test123" ).shardKeys ("_key:" ));
199
+ new CollectionCreateOptions ().smartJoinAttribute ("test123" ).distributeShardsLike ( fooName ). shardKeys ("_key:" ));
197
200
assertThat (result ).isNotNull ();
198
201
assertThat (result .getId ()).isNotNull ();
199
202
assertThat (db .collection (name ).getProperties ().getSmartJoinAttribute ()).isEqualTo ("test123" );
You can’t perform that action at this time.
0 commit comments