From 29adaf26e92dcfe54ee8482c7f12579531c741d0 Mon Sep 17 00:00:00 2001 From: Toshiaki Maki Date: Wed, 3 Jan 2018 04:25:26 +0900 Subject: [PATCH] Use verifyError (#2602) --- .../cloud/netflix/hystrix/HystrixCommandsTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/hystrix/HystrixCommandsTests.java b/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/hystrix/HystrixCommandsTests.java index b06a7c3a..9e7a409c 100644 --- a/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/hystrix/HystrixCommandsTests.java +++ b/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/hystrix/HystrixCommandsTests.java @@ -53,7 +53,7 @@ public class HystrixCommandsTests { Thread.sleep(1500); return "timeout"; })).commandName("failcmd").toMono()) - .expectError(HystrixRuntimeException.class); + .verifyError(HystrixRuntimeException.class); } @Test @@ -97,7 +97,7 @@ public class HystrixCommandsTests { .expectNext("1") .thenAwait(Duration.ofSeconds(1)) .thenRequest(1) - .expectError(); + .verifyError(); } @Test @@ -120,7 +120,7 @@ public class HystrixCommandsTests { throw new RuntimeException(e); } })).commandName("failcmd").toFlux()) - .expectError(HystrixRuntimeException.class); + .verifyError(HystrixRuntimeException.class); } @Test