Remove usages from tests

This commit is contained in:
Ilya Gorbunov
2015-07-22 21:39:32 +03:00
parent ceb3b7da9d
commit 184978e3cb
@@ -13,7 +13,7 @@ class ThreadTest {
val pool = Executors.newFixedThreadPool(1)
val countDown = CountDownLatch(1)
pool {
pool execute {
countDown.countDown()
}
assertTrue(countDown.await(2, SECONDS), "Count down is executed")
@@ -22,8 +22,8 @@ class ThreadTest {
test fun callableInvoke() {
val pool = Executors.newFixedThreadPool(1)
val future = pool<String> {
"Hello"
val future = pool.submit<String> { // type specification required here to choose overload for callable, see KT-7882
"Hello"
}
assertEquals("Hello", future.get(2, SECONDS))
}