提交 43a814b0 编写于 作者: J Johnny Lim 提交者: Juergen Hoeller

Remove duplicate assertions in AsyncExecutionTests

上级 bffa4b88
......@@ -381,7 +381,6 @@ public class AsyncExecutionTests {
.atMost(1, TimeUnit.SECONDS)
.pollInterval(10, TimeUnit.MILLISECONDS)
.until(() -> listenerCalled == 1);
assertEquals(listenerCalled, 1);
context.close();
}
......@@ -403,7 +402,6 @@ public class AsyncExecutionTests {
.atMost(1, TimeUnit.SECONDS)
.pollInterval(10, TimeUnit.MILLISECONDS)
.until(() -> listenerCalled == 2);
assertEquals(2, listenerCalled);
assertEquals(1, listenerConstructed);
}
......@@ -427,7 +425,6 @@ public class AsyncExecutionTests {
.atMost(1, TimeUnit.SECONDS)
.pollInterval(10, TimeUnit.MILLISECONDS)
.until(() -> listenerCalled == 2);
assertEquals(2, listenerCalled);
assertEquals(2, listenerConstructed);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册