From 549f873941413c6eab93e39cf7018e74fee0edac Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 29 Oct 2015 15:59:12 +0000 Subject: [PATCH] Update RestarterTests to expect listener to be notified at least once --- .../springframework/boot/devtools/restart/RestarterTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/RestarterTests.java b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/RestarterTests.java index f05342ec26..94c56dd314 100644 --- a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/RestarterTests.java +++ b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/RestarterTests.java @@ -96,7 +96,7 @@ public class RestarterTests { String output = this.out.toString(); assertThat(StringUtils.countOccurrencesOf(output, "Tick 0"), greaterThan(1)); assertThat(StringUtils.countOccurrencesOf(output, "Tick 1"), greaterThan(1)); - assertThat(TestRestartListener.restarts, greaterThan(1)); + assertThat(TestRestartListener.restarts, greaterThan(0)); } @Test