diff --git a/src/test/java/dev/blaauwendraad/masker/json/LargeStreamTest.java b/src/test/java/dev/blaauwendraad/masker/json/LargeStreamTest.java index 49d0f520..434cc6d4 100644 --- a/src/test/java/dev/blaauwendraad/masker/json/LargeStreamTest.java +++ b/src/test/java/dev/blaauwendraad/masker/json/LargeStreamTest.java @@ -44,10 +44,10 @@ static void setupFiles() throws IOException { } inputFileWriter.write("{\"key\":\"mask\"}"); expectedResultFileWriter.write("{\"key\":\"***\"}"); - inputFileWriter.flush(); - expectedResultFileWriter.flush(); inputFileWriter.write("]"); expectedResultFileWriter.write("]"); + inputFileWriter.flush(); + expectedResultFileWriter.flush(); inputFileWriter.close(); expectedResultFileWriter.close(); }