Skip to content

Commit

Permalink
test: Attempt to de-flake mistty-test-forbid-edit-map.
Browse files Browse the repository at this point in the history
Sometimes (execute-kbd-macro "<right>") doesn't seems to register in
mistty-test-forbid-edit-map. This change assumes that the problem comes
from a race condition due to <right> and RET being sent in different
ways and switches to sending them both with execute-kbd-macro.
  • Loading branch information
szermatt committed Dec 28, 2024
1 parent c92963d commit 2e377f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/mistty-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -3105,8 +3105,7 @@

;; "echo third", the first option is selected by default.
;; select the second option (echo second) and accept it.
(execute-kbd-macro (kbd "<right>"))
(mistty-send-command)
(execute-kbd-macro (kbd "<right> RET"))
(mistty-wait-for-output
:test (lambda ()
(save-excursion
Expand Down

0 comments on commit 2e377f8

Please sign in to comment.