Browse Source

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 years ago
parent
commit
2dd4650b87
1 changed files with 3 additions and 0 deletions
  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))
          :to-throw))
 
 
       (it "shouldn't allow C-j to select an ambiguous match"
       (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
         (expect
          (with-simulated-input "b C-j C-j C-j"
          (with-simulated-input "b C-j C-j C-j"
            (ido-completing-read+
            (ido-completing-read+