瀏覽代碼

Fix a spurious test failure

Ryan C. Thompson 1 年之前
父節點
當前提交
271d775b97
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      tests/test-ido-completing-read+.el

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

@@ -328,9 +328,10 @@ 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)
+        ;; Make this a no-op to prevent spurious end-of-buffer errors
+        ;; when ido tries to create a help buffer in a noninteractive
+        ;; emacs.
+        (spy-on 'ido-completion-auto-help)
         (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+