Skip to content

Commit

Permalink
more explicit test
Browse files Browse the repository at this point in the history
  • Loading branch information
edgao committed Feb 15, 2024
1 parent 7bef039 commit 9b0bca9
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,10 @@ public void writesContentsCorrectly_when_stagingDatabaseConfig() throws IOExcept
// carriage returns are required b/c RFC4180 requires it :(
// Dynamically generate the timestamp because we generate in local time.
assertEquals(
String.format(
"""
f6767f7d-ce1e-45cc-92db-2ad3dfdd088e,"{""foo"":73}",%s\r
2b95a13f-d54f-4370-a712-1c7bf2716190,"{""bar"":84}",%s\r
"""
f6767f7d-ce1e-45cc-92db-2ad3dfdd088e,"{""foo"":73}",1970-01-01T00:00:01.234Z\r
2b95a13f-d54f-4370-a712-1c7bf2716190,"{""bar"":84}",1970-01-01T00:00:02.345Z\r
""",
Instant.ofEpochMilli(1234),
Instant.ofEpochMilli(2345)),
outputStreams.get(0).toString(StandardCharsets.UTF_8));
}

Expand Down

0 comments on commit 9b0bca9

Please sign in to comment.