Commit 907b64a5 authored by Andy Wilkinson's avatar Andy Wilkinson

Remove redundant stop() calls from LiveReloadServerTests

parent 615cf63a
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -89,7 +89,6 @@ class LiveReloadServerTests { ...@@ -89,7 +89,6 @@ class LiveReloadServerTests {
LiveReloadWebSocketHandler handler = connect(); LiveReloadWebSocketHandler handler = connect();
this.server.triggerReload(); this.server.triggerReload();
Thread.sleep(200); Thread.sleep(200);
this.server.stop();
assertThat(handler.getMessages().get(0)).contains("http://livereload.com/protocols/official-7"); assertThat(handler.getMessages().get(0)).contains("http://livereload.com/protocols/official-7");
assertThat(handler.getMessages().get(1)).contains("command\":\"reload\""); assertThat(handler.getMessages().get(1)).contains("command\":\"reload\"");
} }
...@@ -100,7 +99,6 @@ class LiveReloadServerTests { ...@@ -100,7 +99,6 @@ class LiveReloadServerTests {
handler.sendMessage(new PingMessage()); handler.sendMessage(new PingMessage());
Thread.sleep(200); Thread.sleep(200);
assertThat(handler.getPongCount()).isEqualTo(1); assertThat(handler.getPongCount()).isEqualTo(1);
this.server.stop();
} }
@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