@@ -135,7 +135,7 @@ public void createCollectionWithReplicationFactor() throws InterruptedException,
135135 assertThat (result .getId (), is (notNullValue ()));
136136 assertThat (db .collection (COLLECTION_NAME ).getProperties ().get ().getReplicationFactor (), is (2 ));
137137 } finally {
138- db .collection (COLLECTION_NAME ).drop ();
138+ db .collection (COLLECTION_NAME ).drop (). get () ;
139139 }
140140 }
141141
@@ -151,7 +151,7 @@ public void createCollectionWithNumberOfShards() throws InterruptedException, Ex
151151 assertThat (result .getId (), is (notNullValue ()));
152152 assertThat (db .collection (COLLECTION_NAME ).getProperties ().get ().getNumberOfShards (), is (2 ));
153153 } finally {
154- db .collection (COLLECTION_NAME ).drop ();
154+ db .collection (COLLECTION_NAME ).drop (). get () ;
155155 }
156156 }
157157
@@ -170,7 +170,7 @@ public void createCollectionWithNumberOfShardsAndShardKey() throws InterruptedEx
170170 assertThat (properties .getNumberOfShards (), is (2 ));
171171 assertThat (properties .getShardKeys ().size (), is (1 ));
172172 } finally {
173- db .collection (COLLECTION_NAME ).drop ();
173+ db .collection (COLLECTION_NAME ).drop (). get () ;
174174 }
175175 }
176176
@@ -188,7 +188,7 @@ public void createCollectionWithNumberOfShardsAndShardKeys() throws InterruptedE
188188 assertThat (properties .getNumberOfShards (), is (2 ));
189189 assertThat (properties .getShardKeys ().size (), is (2 ));
190190 } finally {
191- db .collection (COLLECTION_NAME ).drop ();
191+ db .collection (COLLECTION_NAME ).drop (). get () ;
192192 }
193193 }
194194
@@ -783,7 +783,7 @@ public void getAndClearSlowQueries() throws InterruptedException, ExecutionExcep
783783 final QueryEntity queryEntity = slowQueries .iterator ().next ();
784784 assertThat (queryEntity .getQuery (), is ("return sleep(1.1)" ));
785785
786- db .clearSlowQueries ();
786+ db .clearSlowQueries (). get () ;
787787 assertThat (db .getSlowQueries ().get ().size (), is (0 ));
788788 } finally {
789789 properties .setSlowQueryThreshold (slowQueryThreshold );
@@ -895,29 +895,29 @@ public void transactionVPack() throws VPackException, InterruptedException, Exec
895895 }
896896
897897 @ Test
898- public void transactionEmpty () {
899- db .transaction ("function () {}" , null , null );
898+ public void transactionEmpty () throws InterruptedException , ExecutionException {
899+ db .transaction ("function () {}" , null , null ). get () ;
900900 }
901901
902902 @ Test
903- public void transactionallowImplicit () {
903+ public void transactionallowImplicit () throws InterruptedException , ExecutionException {
904904 try {
905- db .createCollection ("someCollection" , null );
906- db .createCollection ("someOtherCollection" , null );
905+ db .createCollection ("someCollection" , null ). get () ;
906+ db .createCollection ("someOtherCollection" , null ). get () ;
907907 final String action = "function (params) {" + "var db = require('internal').db;"
908908 + "return {'a':db.someCollection.all().toArray()[0], 'b':db.someOtherCollection.all().toArray()[0]};"
909909 + "}" ;
910910 final TransactionOptions options = new TransactionOptions ().readCollections ("someCollection" );
911- db .transaction (action , VPackSlice .class , options );
911+ db .transaction (action , VPackSlice .class , options ). get () ;
912912 try {
913913 options .allowImplicit (false );
914914 db .transaction (action , VPackSlice .class , options ).get ();
915915 fail ();
916916 } catch (final Exception e ) {
917917 }
918918 } finally {
919- db .collection ("someCollection" ).drop ();
920- db .collection ("someOtherCollection" ).drop ();
919+ db .collection ("someCollection" ).drop (). get () ;
920+ db .collection ("someOtherCollection" ).drop (). get () ;
921921 }
922922 }
923923
0 commit comments