A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
RelayNodeTwinTest: say which line failed and whether the relay ended the stream
Claudeaf08d07bac0f
diff --git a/android/app/src/test/kotlin/com/coucou/android/link/RelayNodeTwinTest.kt b/android/app/src/test/kotlin/com/coucou/android/link/RelayNodeTwinTest.ktindex 2d4e956f..f3b9215a 100644--- a/android/app/src/test/kotlin/com/coucou/android/link/RelayNodeTwinTest.kt+++ b/android/app/src/test/kotlin/com/coucou/android/link/RelayNodeTwinTest.kt@@ -106,9 +106,11 @@ class RelayNodeTwinTest {// A larger line, several frames in a row, and both directions interleaved.val big = "{\"x\":\"" + "a".repeat(40_000) + "\"}"repeat(5) { phone.getOutputStream().write((big + "\n").toByteArray()) }- repeat(5) { assertEquals(big, host.lines.poll(20, TimeUnit.SECONDS)) }+ repeat(5) { n -> assertEquals("big line $n, computer side", big, host.lines.poll(20, TimeUnit.SECONDS)) }repeat(5) { host.send(big) }- repeat(5) { assertEquals(big, readLine(phone)) }+ // A read that ends the stream (null) or runs out of time says so, instead of a bare AssertionError.+ phone.soTimeout = 20_000+ repeat(5) { n -> assertEquals("big line $n, phone side (null = the relay ended the stream)", big, readLine(phone)) }} finally {phone.close()}