mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
fix: preserve diagnostic staging failures
This commit is contained in:
1 parent
a431c40b1b
commit
1ae37055c9
2 files changed
+101
-64
No files matched your search
@@ -507,7 +507,11 @@ class EnhancedSessionLogShareTest {
|
||||
root: java.nio.file.Path,
|
||||
relative: java.nio.file.Path,
|
||||
block: (java.nio.channels.SeekableByteChannel) -> T,
|
||||
): T? = throw IOException("injected source read failure")
|
||||
): T? = FileChannel.open(root.resolve(relative), StandardOpenOption.READ).use { channel ->
|
||||
block(object : SeekableByteChannel by channel {
|
||||
override fun read(dst: ByteBuffer): Int = throw IOException("injected source read failure")
|
||||
})
|
||||
}
|
||||
})
|
||||
try {
|
||||
val sessionZip = EnhancedSessionLogShare.create(app, session).single { it.name.endsWith("-session.zip") }
|
||||
|
||||
Reference in new issue
Block a user