From 43a814b070c73b0d36701080cebfbc22ff8a9bc4 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Tue, 11 Sep 2018 23:39:19 +0900 Subject: [PATCH] Remove duplicate assertions in AsyncExecutionTests --- .../scheduling/annotation/AsyncExecutionTests.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncExecutionTests.java b/spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncExecutionTests.java index dfe1e58082c..9cafab0ecab 100644 --- a/spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncExecutionTests.java +++ b/spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncExecutionTests.java @@ -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); }