assert_eq suggestion

This commit is contained in:
Christian Schwarz
2023-05-25 09:55:32 +02:00
parent 413598b19b
commit 641ca994dc

View File

@@ -1675,8 +1675,9 @@ impl Tenant {
}
self.state.send_modify(move |current_state| {
assert!(
*current_state == TenantState::Activating,
assert_eq!(
*current_state,
TenantState::Activating,
"set_stopping and set_broken wait for us to leave Activating state",
);
*current_state = TenantState::Active;