Skip to content

Commit

Permalink
Fix JDK 8 test (#8067)
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke authored Oct 18, 2023
1 parent 27a726d commit 2344b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okhttp/src/jvmTest/java/okhttp3/CacheTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ private void testResponseCaching(TransferKind transferKind) throws IOException {
Path cacheEntry = fileSystem.allPaths().stream()
.filter((e) -> e.name().endsWith(".0"))
.findFirst()
.orElseThrow();
.orElseThrow(NoSuchElementException::new);
corruptCertificate(cacheEntry);

Response response2 = client.newCall(request).execute(); // Not Cached!
Expand Down

0 comments on commit 2344b87

Please sign in to comment.