diff --git a/src/test/java/com/alibaba/ttl/reported_bugs/Bug70_Test.kt b/src/test/java/com/alibaba/ttl/reported_bugs/Bug70_Test.kt index 5cfb4fa7490b1944cafa8ad364ded2f47eba8e86..0b0412535e4ec327af541394bae0b5c8275fa48a 100644 --- a/src/test/java/com/alibaba/ttl/reported_bugs/Bug70_Test.kt +++ b/src/test/java/com/alibaba/ttl/reported_bugs/Bug70_Test.kt @@ -22,11 +22,10 @@ class Bug70_Test { val threadLocal = TransmittableThreadLocal().apply { set(hello) } assertEquals(hello, threadLocal.get()) - val futureTask = FutureTask { threadLocal.get() }.also { + FutureTask { threadLocal.get() }.also { executorService.submit(TtlRunnable.get(it)) - .get() + assertEquals(hello, it.get()) } - assertEquals(hello, futureTask.get()) val taskRef = AtomicReference>() thread(name = "the thread for run executor action") {