Skip to content

Commit 502a119

Browse files
committed
fix smartJoinAttribute test (DE-489)
1 parent 5cc3f76 commit 502a119

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)