Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Jan 4, 2025
1 parent 2f959af commit 7af5705
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class CacheTest {
@AfterEach
fun tearDown() {
ResponseCache.setDefault(null)
cache.close()
cache.delete()
}

Expand Down Expand Up @@ -3498,9 +3499,9 @@ CLEAN $urlKey ${entryMetadata.length} ${entryBody.length}
return path
}
}
val c = Cache(loggingFileSystem, cachePath, 100000L)
assertThat(c.directoryPath).isEqualTo(cachePath)
c.size()
cache = Cache(loggingFileSystem, cachePath, 100000L)
assertThat(cache.directoryPath).isEqualTo(cachePath)
cache.size()
assertThat(events).containsExactly(
"metadataOrNull:$cachePath/journal.bkp",
"metadataOrNull:$cachePath",
Expand Down

0 comments on commit 7af5705

Please sign in to comment.