Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 424088547
  • Loading branch information
Googler authored and copybara-github committed Jan 25, 2022
1 parent 2e244ff commit 58d925a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public void testConcurrentWritesJournalRecovery() throws Exception {

@Test
public void testCorruptedJournal() throws Exception {
FileSystemUtils.createDirectoryAndParents(journalPath.getParentDirectory());
journalPath.getParentDirectory().createDirectoryAndParents();
FileSystemUtils.writeContentAsLatin1(journalPath, "bogus content");
IOException e =
assertThrows(
Expand Down Expand Up @@ -351,7 +351,7 @@ public void testDeferredIOFailure() throws Exception {
assertThat(journalPath.exists()).isFalse();

// Ensure that journal cannot be saved.
FileSystemUtils.createDirectoryAndParents(journalPath);
journalPath.createDirectoryAndParents();

clock.advance(4);
assertIndex(9, "abc1234"); // This should flush journal to disk (and fail at that).
Expand Down

0 comments on commit 58d925a

Please sign in to comment.