Pārlūkot izejas kodu

Fix a test that was failing on Emacs 28 (snapshot)

The test was failing due to triggering an irrelevant end-of-buffer
error.
Ryan C. Thompson 4 gadi atpakaļ
vecāks
revīzija
2dd4650b87
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      tests/test-ido-completing-read+.el

+ 3 - 0
tests/test-ido-completing-read+.el

@@ -328,6 +328,9 @@ also accept a quoted list for the sake of convenience."
          :to-throw))
 
       (it "shouldn't allow C-j to select an ambiguous match"
+        ;; Make this a no-op to avoid end-of-buffer errors, which are
+        ;; irrelevant to this test.
+        (spy-on 'scroll-other-window)
         (expect
          (with-simulated-input "b C-j C-j C-j"
            (ido-completing-read+