File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
src/test/java/com/arangodb Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments