From 58d925a734384dd89f710bbd8caf43aed49f9d7e Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 25 Jan 2022 08:26:00 -0800 Subject: [PATCH] Automatic code cleanup. PiperOrigin-RevId: 424088547 --- .../build/lib/actions/cache/PersistentStringIndexerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/google/devtools/build/lib/actions/cache/PersistentStringIndexerTest.java b/src/test/java/com/google/devtools/build/lib/actions/cache/PersistentStringIndexerTest.java index c50a4182133311..f307b5c06138bc 100644 --- a/src/test/java/com/google/devtools/build/lib/actions/cache/PersistentStringIndexerTest.java +++ b/src/test/java/com/google/devtools/build/lib/actions/cache/PersistentStringIndexerTest.java @@ -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( @@ -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).