From 184978e3cb1f59d1ae4d574bca4fbbea9adf93e5 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Wed, 22 Jul 2015 21:39:32 +0300 Subject: [PATCH] Remove usages from tests --- libraries/stdlib/test/concurrent/ThreadTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/stdlib/test/concurrent/ThreadTest.kt b/libraries/stdlib/test/concurrent/ThreadTest.kt index 39ee65835e5..068a79147d8 100644 --- a/libraries/stdlib/test/concurrent/ThreadTest.kt +++ b/libraries/stdlib/test/concurrent/ThreadTest.kt @@ -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 { - "Hello" + val future = pool.submit { // type specification required here to choose overload for callable, see KT-7882 + "Hello" } assertEquals("Hello", future.get(2, SECONDS)) }