Commit 29adaf26 by Toshiaki Maki Committed by Spencer Gibb

Use verifyError (#2602)

parent b3acc139
......@@ -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
......
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