Skip to content

Commit

Permalink
NIFI-5681: Fix a locale-dependent test in TestVersionedFlowSnapshotMe…
Browse files Browse the repository at this point in the history
…tadataResult

Signed-off-by: Pierre Villard <[email protected]>

This closes apache#3061.
  • Loading branch information
kotarot authored and pvillard31 committed Oct 11, 2018
1 parent 6c17685 commit 83ca676
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ public void testWriteSimpleVersionedFlowSnapshotResult() throws ParseException,
//System.out.println(resultOut);

// can't get the time zone to line up on travis, so ignore this for now
final String expected = "\n" +
"Ver Date Author Message \n" +
"--- -------------------------- ------ ---------------------------------------- \n" ;//+
final String expectedPattern = "^\\n" +
"Ver +Date + Author + Message +\\n" +
"-+ +-+ +-+ +-+ +\\n" +
//"1 Wed, Feb 14 2018 12:00 EST user1 This is a long comment, longer than t... \n" +
//"2 Wed, Feb 14 2018 12:30 EST user2 This is v2 \n" +
//"\n";
"(.|\\n)+$";

Assert.assertTrue(resultOut.startsWith(expected));
Assert.assertTrue(resultOut.matches(expectedPattern));
}
}

0 comments on commit 83ca676

Please sign in to comment.