From 907b64a5ebd6935f9046b189278f5f4d69268844 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 18 Jun 2020 09:22:43 +0100 Subject: [PATCH] Remove redundant stop() calls from LiveReloadServerTests --- .../boot/devtools/livereload/LiveReloadServerTests.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java b/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java index 268466edc48..b7d0aef8c3c 100644 --- a/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java +++ b/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -89,7 +89,6 @@ class LiveReloadServerTests { LiveReloadWebSocketHandler handler = connect(); this.server.triggerReload(); Thread.sleep(200); - this.server.stop(); assertThat(handler.getMessages().get(0)).contains("http://livereload.com/protocols/official-7"); assertThat(handler.getMessages().get(1)).contains("command\":\"reload\""); } @@ -100,7 +99,6 @@ class LiveReloadServerTests { handler.sendMessage(new PingMessage()); Thread.sleep(200); assertThat(handler.getPongCount()).isEqualTo(1); - this.server.stop(); } @Test