File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
plugin/trino-hive/src/test/java/io/trino/plugin/hive Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -212,8 +212,7 @@ public void testPathFilter()
212212 HiveSplitSource hiveSplitSource = hiveSplitSource (backgroundHiveSplitLoader );
213213 backgroundHiveSplitLoader .start (hiveSplitSource );
214214 List <String > paths = drain (hiveSplitSource );
215- assertThat (paths ).hasSize (1 );
216- assertThat (paths .get (0 )).isEqualTo (LOCATION .toString ());
215+ assertThat (paths ).containsExactly (LOCATION .toString ());
217216 }
218217
219218 @ Test
@@ -249,8 +248,7 @@ public void testPathFilterOneBucketMatchPartitionedTable()
249248 HiveSplitSource hiveSplitSource = hiveSplitSource (backgroundHiveSplitLoader );
250249 backgroundHiveSplitLoader .start (hiveSplitSource );
251250 List <String > paths = drain (hiveSplitSource );
252- assertThat (paths ).hasSize (1 );
253- assertThat (paths .get (0 )).isEqualTo (LOCATION .toString ());
251+ assertThat (paths ).containsExactly (LOCATION .toString ());
254252 }
255253
256254 @ Test
@@ -276,8 +274,7 @@ public void testPathFilterBucketedPartitionedTable()
276274 HiveSplitSource hiveSplitSource = hiveSplitSource (backgroundHiveSplitLoader );
277275 backgroundHiveSplitLoader .start (hiveSplitSource );
278276 List <String > paths = drain (hiveSplitSource );
279- assertThat (paths ).hasSize (1 );
280- assertThat (paths .get (0 )).isEqualTo (LOCATION .toString ());
277+ assertThat (paths ).containsExactly (LOCATION .toString ());
281278 }
282279
283280 @ Test
You can’t perform that action at this time.
0 commit comments