8000 Fix test · Sunghyeok93/arangodb-java-driver@b158e3f · GitHub
[go: up one dir, main page]

Skip to content

Commit b158e3f

Browse files
author
mpv1989
committed
Fix test
1 parent d2ebb19 commit b158e3f

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/test/java/com/arangodb/ArangoCollectionTest.java

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,13 +1822,19 @@ public void getPropeties() {
18221822

18231823
@Test
18241824
public void changeProperties() {
1825-
final CollectionPropertiesEntity properties = db.collection(COLLECTION_NAME).getProperties();
1826-
assertThat(properties.getWaitForSync(), is(notNullValue()));
1827-
final CollectionPropertiesOptions options = new CollectionPropertiesOptions();
1828-
options.waitForSync(!properties.getWaitForSync());
1829-
final CollectionPropertiesEntity changedProperties = db.collection(COLLECTION_NAME).changeProperties(options);
1830-
assertThat(changedProperties.getWaitForSync(), is(notNullValue()));
1831-
assertThat(changedProperties.getWaitForSync(), is(not(properties.getWaitForSync())));
1825+
final String collection = COLLECTION_NAME + "_prop";
1826+
try {
1827+
final CollectionPropertiesEntity properties = db.collection(collection).getProperties();
1828+
assertThat(properties.getWaitForSync(), is(notNullValue()));
1829+
final CollectionPropertiesOptions options = new CollectionPropertiesOptions();
1830+
options.waitForSync(!properties.getWaitForSync());
1831+
options.journalSize(2000000L);
1832+
final CollectionPropertiesEntity changedProperties = db.collection(collection).changeProperties(options);
1833+
assertThat(changedProperties.getWaitForSync(), is(notNullValue()));
1834+
assertThat(changedProperties.getWaitForSync(), is(not(properties.getWaitForSync())));
1835+
} finally {
1836+
db.collection(collection).drop();
1837+
}
18321838
}
18331839

18341840
@Test

0 commit comments

Comments
 (0)
0