We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ceea82 commit 7e91c08Copy full SHA for 7e91c08
adapter/src/test/kotlin/org/javacs/ktda/DebugAdapterTestFixture.kt
@@ -47,9 +47,10 @@ abstract class DebugAdapterTestFixture(
47
Thread {
48
configDone.join()
49
}.start()
50
- // Add a small delay to ensure that the thread has
51
- // started and is blocked on the future.
52
- Thread.sleep(500)
+ // Wait until the thread has blocked on the future
+ while (configDone.numberOfDependents == 0) {
+ Thread.sleep(100)
53
+ }
54
}
55
56
0 commit comments