From 6311ae191f44c172f9dcd6e4d83a17ffbfdcfa1c Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 25 Jun 2014 16:21:33 -0700 Subject: [PATCH] Throw exception on stop failure Trying to fix the Windows CI build --- .../embedded/AbstractEmbeddedServletContainerFactoryTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java b/spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java index 3956a84ba8..a551e2cdd1 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java @@ -110,7 +110,7 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests { .getEmbeddedServletContainer(exampleServletRegistration()); this.container.start(); this.container.stop(); - // this.thrown.expect(Exception.class); + this.thrown.expect(IOException.class); String response = getResponse(getLocalUrl("/hello")); throw new RuntimeException(response); }