Commit 29adaf26 by Toshiaki Maki Committed by Spencer Gibb

Use verifyError (#2602)

parent b3acc139
...@@ -53,7 +53,7 @@ public class HystrixCommandsTests { ...@@ -53,7 +53,7 @@ public class HystrixCommandsTests {
Thread.sleep(1500); Thread.sleep(1500);
return "timeout"; return "timeout";
})).commandName("failcmd").toMono()) })).commandName("failcmd").toMono())
.expectError(HystrixRuntimeException.class); .verifyError(HystrixRuntimeException.class);
} }
@Test @Test
...@@ -97,7 +97,7 @@ public class HystrixCommandsTests { ...@@ -97,7 +97,7 @@ public class HystrixCommandsTests {
.expectNext("1") .expectNext("1")
.thenAwait(Duration.ofSeconds(1)) .thenAwait(Duration.ofSeconds(1))
.thenRequest(1) .thenRequest(1)
.expectError(); .verifyError();
} }
@Test @Test
...@@ -120,7 +120,7 @@ public class HystrixCommandsTests { ...@@ -120,7 +120,7 @@ public class HystrixCommandsTests {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
})).commandName("failcmd").toFlux()) })).commandName("failcmd").toFlux())
.expectError(HystrixRuntimeException.class); .verifyError(HystrixRuntimeException.class);
} }
@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