From eb95d66027d1df06584a84d3d392ae7bc26789ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= <sebastian@mobanisto.de> Date: Thu, 4 Nov 2021 16:11:29 +0100 Subject: [PATCH] Don't need to wait for contacts to appear, contact list works now --- .../org/briarproject/briar/desktop/RunWithTemporaryAccount.kt | 4 ---- .../briar/desktop/TestWithTwoTemporaryAccounts.kt | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/test/kotlin/org/briarproject/briar/desktop/RunWithTemporaryAccount.kt b/src/test/kotlin/org/briarproject/briar/desktop/RunWithTemporaryAccount.kt index d58254b29f..c8daac93e5 100644 --- a/src/test/kotlin/org/briarproject/briar/desktop/RunWithTemporaryAccount.kt +++ b/src/test/kotlin/org/briarproject/briar/desktop/RunWithTemporaryAccount.kt @@ -49,10 +49,6 @@ internal class RunWithTemporaryAccount(val customization: BriarDesktopTestApp.() customization(app) - // Creating test data happens on a background thread. As we do not get notified about updates to the conact - // list yet, we need to wait a moment in order for that to finish (hopefully). - Thread.sleep(1000) - application { app.getBriarUi().start { app.getBriarUi().stop() diff --git a/src/test/kotlin/org/briarproject/briar/desktop/TestWithTwoTemporaryAccounts.kt b/src/test/kotlin/org/briarproject/briar/desktop/TestWithTwoTemporaryAccounts.kt index e8db6cf56e..72c6db6c96 100644 --- a/src/test/kotlin/org/briarproject/briar/desktop/TestWithTwoTemporaryAccounts.kt +++ b/src/test/kotlin/org/briarproject/briar/desktop/TestWithTwoTemporaryAccounts.kt @@ -33,9 +33,6 @@ internal class TestWithTwoTemporaryAccounts() { apps.add(app2) app1.getDeterministicTestDataCreator().createTestData(5, 20, 50) app2.getDeterministicTestDataCreator().createTestData(5, 20, 50) - // Creating test data happens on a background thread. As we do not get notified about updates to the conact - // list yet, we need to wait a moment in order for that to finish (hopefully). - Thread.sleep(1000) application { start(app1, this) -- GitLab