File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
src/test/java/com/rabbitmq/stream/impl Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,15 @@ void partitionsAndRouteShouldNotReturnNonStreamQueue() throws Exception {
134134 void partitionsReturnsCorrectOrder () throws Exception {
135135 String [] partitionNames = {"z" , "y" , "x" };
136136 declareSuperStreamTopology (connection , superStream , partitionNames );
137- Client client = cf .get ();
138- List <String > streams = client .partitions (superStream );
139- assertThat (streams )
140- .hasSize (partitions )
141- .containsSequence (
142- Arrays .stream (partitionNames ).map (p -> superStream + "-" + p ).toArray (String []::new ));
137+ try {
138+ Client client = cf .get ();
139+ List <String > streams = client .partitions (superStream );
140+ assertThat (streams )
141+ .hasSize (partitions )
142+ .containsSequence (
143+ Arrays .stream (partitionNames ).map (p -> superStream + "-" + p ).toArray (String []::new ));
144+ } finally {
145+ deleteSuperStreamTopology (connection , superStream , partitionNames );
146+ }
143147 }
144148}
You can’t perform that action at this time.
0 commit comments