Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cleanupTrimFailureWithPartialSnapshot (0.17 sec)

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

        filesystem.setFaultyDelete(cacheDir / "a.0", false)
        cache.flush()
        set("c", "cc", "cc")
        assertValue("c", "cc", "cc")
      }
    
      @Test
      fun cleanupTrimFailureWithPartialSnapshot() {
        cache.maxSize = 8
        taskFaker.runNextTask()
        set("a", "aa", "aa")
        set("b", "bb", "bbb")
    
        // Cause the cache trim to fail on the second value leaving a partial snapshot.
    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