Skip to content

Commit cffd665

Browse files
Update state_machine.rs
1 parent 69180aa commit cffd665

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/state_machine.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,11 @@ mod tests {
5959
assert_eq!(new_state, IntentState::Committed);
6060
}
6161
}
62+
#[test]
63+
fn committed_is_terminal() {
64+
let state = IntentState::Committed;
65+
66+
let result = state.transition(TransitionEvent::Timeout);
67+
68+
assert!(result.is_err());
69+
}

0 commit comments

Comments
 (0)