diff --git a/src/test/kotlin/org/briarproject/briar/desktop/RunWithTemporaryAccount.kt b/src/test/kotlin/org/briarproject/briar/desktop/RunWithTemporaryAccount.kt index d58254b29fcafe89f27bf55792b9f4c35c4d9033..c8daac93e51b6ad1aaf4ba9ef5624ba220f34b39 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 e8db6cf56ea412f950cd8239b98b13bccb49c1b7..72c6db6c9696d43123a28c72f7adf3ed7a9bab72 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)