Finite state machines in rust; bendns fork to add types.
Diffstat (limited to 'tests/circuit_breaker_dsl.rs')
| -rw-r--r-- | tests/circuit_breaker_dsl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/circuit_breaker_dsl.rs b/tests/circuit_breaker_dsl.rs index e593625..2293786 100644 --- a/tests/circuit_breaker_dsl.rs +++ b/tests/circuit_breaker_dsl.rs @@ -45,7 +45,7 @@ fn circit_breaker_dsl() { std::thread::sleep(Duration::new(1, 0)); let mut lock = machine_try.lock().unwrap(); let res = lock.consume(&CircuitBreakerInput::Successful); - assert!(matches!(res, Err(()))); + assert!(matches!(res, Err(TransitionImpossibleError))); assert!(matches!(lock.state(), &CircuitBreakerState::Open)); }); |