Github user patricker commented on a diff in the pull request:
https://github.com/apache/nifi/pull/3033#discussion_r224946482
--- Diff:
nifi-mock/src/main/java/org/apache/nifi/util/MockProcessSession.java ---
@@ -458,6 +458,9 @@ public MockFlowFile importFrom(final Path path, final
boolean keepSourceFile, Fl
newFlowFile.setData(baos.toByteArray());
newFlowFile = putAttribute(newFlowFile,
CoreAttributes.FILENAME.key(), path.getFileName().toString());
+ if (!keepSourceFile) {
--- End diff --
Was this included on accident? Does not seem relevant to your ticket.
---