Skip to content

Commit

Permalink
Fix non-determinism in test
Browse files Browse the repository at this point in the history
Summary: This test was failing on D67542150. As far as I can tell, having two commands map to the same key introduced some non-determinism. Fix here is to change the test to no longer have a conflict.

Reviewed By: diliop

Differential Revision: D67984745

fbshipit-source-id: 354149ff6a14b780dbf083f8c2e1db5f98b1137c
  • Loading branch information
capickett authored and facebook-github-bot committed Jan 9, 2025
1 parent 73ae75e commit 9fa7154
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion below/view/src/controllers/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ help = 'i'
process = 'j'
system = 'l'
zoom = 'm'
fold = 'f'
fold = 'n'
jump_forward = 'o'
jump_backward = 'p'
next_sample = 'q'
Expand Down Expand Up @@ -96,6 +96,10 @@ prev_page = 'y'
event_controllers.get(&Event::Char('v')),
Some(&Controllers::CFilter)
);
assert_eq!(
event_controllers.get(&Event::Char('n')),
Some(&Controllers::Fold)
);
assert_eq!(
event_controllers.get(&Event::Char('o')),
Some(&Controllers::JForward)
Expand Down

0 comments on commit 9fa7154

Please sign in to comment.