diff options
Diffstat (limited to 'tests/test-ai-term--show-or-create.el')
| -rw-r--r-- | tests/test-ai-term--show-or-create.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test-ai-term--show-or-create.el b/tests/test-ai-term--show-or-create.el index 4f5f1f67..9574b8a6 100644 --- a/tests/test-ai-term--show-or-create.el +++ b/tests/test-ai-term--show-or-create.el @@ -44,7 +44,13 @@ mirroring the real entry point." (push (buffer-name b) ,calls) b))) ((symbol-function 'cj/--ai-term-send-string) - (lambda (_buf s) (push s ,strings)))) + (lambda (_buf s) (push s ,strings))) + ;; Keep the create path hermetic: no tmux subprocess for the + ;; fresh-session check, no real /color poll timer. + ((symbol-function 'cj/--ai-term-live-tmux-sessions) + (lambda () nil)) + ((symbol-function 'cj/--ai-term-schedule-color) + (lambda (_buffer _color) nil))) ,@body)))) (defun test-ai-term--cleanup (name) |
