NIFI-10642 Fix flaky test groupByStringMixedNumberOfRecords

Signed-off-by: Matthew Burgess <mattyb149@apache.org>

This closes #6528
This commit is contained in:
zhewenf2 2022-10-13 21:12:21 -05:00 committed by Matthew Burgess
parent 2a45d4ac89
commit 65201ab88b
No known key found for this signature in database
GPG Key ID: 05D3DEB8126DAD24
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class TestPartitionRecord {
assertEquals(1L, out.stream().filter(ff -> ff.getAttribute("record.count").equals("2")).count());
out.forEach(ff -> ff.assertAttributeEquals("fragment.count", "4"));
IntStream.of(1, 3).forEach((i) -> out.get(i).assertAttributeEquals("fragment.id", out.get(0).getAttribute("fragment.id")));
IntStream.of(0, 3).forEach((i) -> out.get(i).assertAttributeEquals("fragment.index", String.valueOf(i)));
IntStream.of(0, 3).forEach((i) -> assertEquals(1L, out.stream().filter(ff -> ff.getAttribute("fragment.index").equals(String.valueOf(i))).count()));
out.stream().filter(ff -> ff.getAttribute("record.count").equals("2")).forEach(ff -> ff.assertContentEquals("Jake,49,\nJake,14,\n"));