Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for journalWriteFailsDuringEdit (0.08 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

            toClose.add(it)
          }
        assertThat(cache.isClosed()).isFalse()
        cache.close()
        assertThat(cache.isClosed()).isTrue()
      }
    
      @Test
      fun journalWriteFailsDuringEdit() {
        set("a", "a", "a")
        set("b", "b", "b")
    
        // We can't begin the edit if writing 'DIRTY' fails.
        filesystem.setFaultyWrite(journalFile, true)
        assertThat(cache.edit("c")).isNull()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 59.4K bytes
    - Viewed (0)
Back to top