Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 4 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /