Commit ae08934e authored by Andy Wilkinson's avatar Andy Wilkinson

There may only be a single restart during RestarterTests.testRestart()

See gh-4097 and changes in 2522a5f9
parent 85cc885f
...@@ -97,7 +97,7 @@ public class RestarterTests { ...@@ -97,7 +97,7 @@ public class RestarterTests {
String output = this.out.toString(); String output = this.out.toString();
assertThat(StringUtils.countOccurrencesOf(output, "Tick 0")).isGreaterThan(1); assertThat(StringUtils.countOccurrencesOf(output, "Tick 0")).isGreaterThan(1);
assertThat(StringUtils.countOccurrencesOf(output, "Tick 1")).isGreaterThan(1); assertThat(StringUtils.countOccurrencesOf(output, "Tick 1")).isGreaterThan(1);
assertThat(CloseCountingApplicationListener.closed).isGreaterThan(1); assertThat(CloseCountingApplicationListener.closed).isGreaterThan(0);
} }
@Test @Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment