mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-16 12:40:36 +00:00
assert_eq suggestion
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user