Skip to content

Commit 583365d

Browse files
committed
fix smartJoinAttribute test (DE-489)
1 parent df35c2d commit 583365d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

driver/src/test/java/com/arangodb/ArangoDatabaseTest.java

+4-1
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)