commit 6db3d671e3acee5b553bf7eb62f67dcae3ef52e9 parent 535db0401c5e1bb1076870fe4f6a2f887b48590d Author: t3sserakt <t3ss@posteo.de> Date: Tue, 12 May 2026 12:27:17 +0200 WIP Diffstat:
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/GNUnetMessenger/app/src/androidTest/java/org/gnunet/gnunetmessenger/ipc/GnunetChatLobbyTwoHandlesTest.kt b/GNUnetMessenger/app/src/androidTest/java/org/gnunet/gnunetmessenger/ipc/GnunetChatLobbyTwoHandlesTest.kt @@ -194,5 +194,17 @@ class GnunetChatLobbyTwoHandlesTest { "B should have A as contact (got: ${contactsB.map { it.name }})", contactsB.any { it.name == nameA } ) + + Log.i(tag, "A: createGroup('TestCrashGroup')") + val group = svcA.createGroup(handleA, "TestCrashGroup") + + val contactB = contactsA.first { it.name == nameB } + Log.i(tag, "A: inviteContactToGroup(group, contactB)") + svcA.inviteContactToGroup(group, contactB) + + Log.i(tag, "Waiting to see if it crashes...") + withContext(Dispatchers.Default.limitedParallelism(1)) { + delay(10000) + } } } diff --git a/GNUnetMessenger/app/src/androidTest/java/org/gnunet/gnunetmessenger/ipc/GnunetChatRemoteTest.kt b/GNUnetMessenger/app/src/androidTest/java/org/gnunet/gnunetmessenger/ipc/GnunetChatRemoteTest.kt @@ -185,16 +185,15 @@ class GnunetChatRemoteTest { val handle = gnunetChat.startChat(MessengerApp()) { ctx, msg -> messageLog.add(ctx to msg) } - + // Wait for handle to be initialized withContext(Dispatchers.Default.limitedParallelism(1)) { - withTimeout(5_000) { + withTimeout(30_000) { while (handle.pointer == 0L) { delay(100) } } } - val groupName = "TestGroup" // Create group