Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for noSizeCorruptionAfterEditorDetached (0.38 sec)

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

        // Committing the detached editor should not change the cache's size.
        editor.commit()
        assertThat(cache.size()).isEqualTo(4)
        assertValue("k1", "bb", "bb")
      }
    
      @Test
      fun noSizeCorruptionAfterEditorDetached() {
        Assumptions.assumeFalse(windows) // Windows can't have two concurrent editors.
    
        set("k1", "a", "a")
    
        // Create an editor for k1. Detach it by clearing the cache.
    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