Skip to content

Commit

Permalink
Fix effect handling in test handler
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood committed Dec 23, 2023
1 parent 760fb7c commit c759d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/handler_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl<H: GameHandler> TestHandler<H> {
general_init_state(&mut new_context, &init_account)?;
let mut effect = new_context.derive_effect();
let handler = H::init_state(&mut effect, init_account)?;
context.apply_effect(effect)?;
new_context.apply_effect(effect)?;
swap(context, &mut new_context);
Ok(Self { handler })
}
Expand Down

0 comments on commit c759d6a

Please sign in to comment.