Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Sep 26, 2024
1 parent 0ca3c2b commit fe47fe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/integration_tests/src/pin_number_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ fn can_set_pin_number_by_providing_recent_delegation(within_5_minutes: bool) {
},
);

let initial_state2 = client::user::happy_path::initial_state(env, &user);

if within_5_minutes {
assert!(matches!(
set_pin_number_response,
user_canister::set_pin_number::Response::Success
));
assert!(initial_state2.pin_number_settings.is_none());
} else {
assert!(matches!(
set_pin_number_response,
user_canister::set_pin_number::Response::DelegationTooOld
));
assert!(initial_state2.pin_number_settings.is_some());
}

let initial_state2 = client::user::happy_path::initial_state(env, &user);

assert!(initial_state2.pin_number_settings.is_none());
}

#[test]
Expand Down

0 comments on commit fe47fe6

Please sign in to comment.