commit b963a7a9232f618d6529ae89e3388b4be0172c26
parent 9dfd0b39b39bf105fce9df902e71c4a4fa4d92fb
Author: t3sserakt <t3ss@posteo.de>
Date: Fri, 15 May 2026 15:03:28 +0200
run block bug
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/GNUnetMessenger/app/src/androidTest/java/org/gnunet/gnunetmessenger/ipc/Gnunet1to1MessagingTest.kt b/GNUnetMessenger/app/src/androidTest/java/org/gnunet/gnunetmessenger/ipc/Gnunet1to1MessagingTest.kt
@@ -5,7 +5,7 @@ import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
-import kotlinx.coroutines.test.runTest
+import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withContext
import kotlinx.coroutines.withTimeout
import org.gnunet.gnunetmessenger.model.ChatAccount
@@ -50,7 +50,7 @@ class Gnunet1to1MessagingTest {
private val nameB = "msgtestb-$ts"
@After
- fun tearDown() = runTest {
+ fun tearDown() = runBlocking {
runCatching { svcA.unbind() }
runCatching { svcB.unbind() }
delay(1000)
@@ -149,7 +149,7 @@ class Gnunet1to1MessagingTest {
}
@Test
- fun bidirectionalTextMessageDeliversBetweenLobbyPairedAccounts() = runTest {
+ fun bidirectionalTextMessageDeliversBetweenLobbyPairedAccounts() = runBlocking<Unit> {
Log.i(tag, "=== START: bidirectionalTextMessageDeliversBetweenLobbyPairedAccounts ===")
// 1. Bring up two parallel chat handles.