提交 d6263871 编写于 作者: oldratlee's avatar oldratlee 🔥

clean test code

上级 ab1b0603
......@@ -22,11 +22,10 @@ class Bug70_Test {
val threadLocal = TransmittableThreadLocal<String>().apply { set(hello) }
assertEquals(hello, threadLocal.get())
val futureTask = FutureTask<String> { threadLocal.get() }.also {
FutureTask<String> { threadLocal.get() }.also {
executorService.submit(TtlRunnable.get(it))
.get()
assertEquals(hello, it.get())
}
assertEquals(hello, futureTask.get())
val taskRef = AtomicReference<FutureTask<String>>()
thread(name = "the thread for run executor action") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册