Skip to content

Commit 907b64a

Browse files
committed
Remove redundant stop() calls from LiveReloadServerTests
1 parent 615cf63 commit 907b64a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -89,7 +89,6 @@ void triggerReload() throws Exception {
8989
LiveReloadWebSocketHandler handler = connect();
9090
this.server.triggerReload();
9191
Thread.sleep(200);
92-
this.server.stop();
9392
assertThat(handler.getMessages().get(0)).contains("http://livereload.com/protocols/official-7");
9493
assertThat(handler.getMessages().get(1)).contains("command\":\"reload\"");
9594
}
@@ -100,7 +99,6 @@ void pingPong() throws Exception {
10099
handler.sendMessage(new PingMessage());
101100
Thread.sleep(200);
102101
assertThat(handler.getPongCount()).isEqualTo(1);
103-
this.server.stop();
104102
}
105103

106104
@Test

0 commit comments

Comments
 (0)