Skip to content

Commit

Permalink
Small test improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMaul committed Oct 7, 2024
1 parent 387255a commit 91906ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/matrix-sdk-ui/src/room_list_service/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ mod tests {

// Hypothetical termination.
{
state_machine.current.set(State::Terminated { from: Box::new(state_machine.get()) });
state_machine.set(State::Terminated { from: Box::new(state_machine.get()) });

// Back to the previous state.
assert_eq!(state_machine.next(sliding_sync).await?, State::Init);
Expand All @@ -207,7 +207,7 @@ mod tests {

// Hypothetical termination.
{
state_machine.current.set(State::Terminated { from: Box::new(state_machine.get()) });
state_machine.set(State::Terminated { from: Box::new(state_machine.get()) });

// Back to the previous state.
assert_eq!(state_machine.next(sliding_sync).await?, State::SettingUp);
Expand All @@ -229,7 +229,7 @@ mod tests {

// Hypothetical termination.
{
state_machine.current.set(State::Terminated { from: Box::new(state_machine.get()) });
state_machine.set(State::Terminated { from: Box::new(state_machine.get()) });

// Jump to the **recovering** state!
assert_eq!(state_machine.next(sliding_sync).await?, State::Recovering);
Expand Down

0 comments on commit 91906ef

Please sign in to comment.