mirror of https://github.com/apache/nifi.git
NIFI-10642 Fix flaky test groupByStringMixedNumberOfRecords
Signed-off-by: Matthew Burgess <mattyb149@apache.org> This closes #6528
This commit is contained in:
parent
2a45d4ac89
commit
65201ab88b
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue