Skip to content

Commit

Permalink
Fix failing test, buffers are not updated unless shown
Browse files Browse the repository at this point in the history
Change introduced in cc89cc2
  • Loading branch information
svaante committed Feb 17, 2024
1 parent 3b4c209 commit e00d43e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dape-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ Expects line with string \"breakpoint\" in source."
(dape-test--apply-to-match "^1 .* stopped in" 'dape-info-select-thread))
(with-current-buffer (dape-test--should
(dape--info-get-live-buffer 'dape-info-threads-mode))
(display-buffer (current-buffer)) ; trigger window-buffer-change-functions
;; thread selected
(dape-test--should
(and (dape-test--line-at-regex "^1 .* stopped in")
Expand Down Expand Up @@ -569,6 +570,7 @@ Expects line with string \"breakpoint\" in source."
;; contents
(with-current-buffer (dape-test--should
(dape--info-get-live-buffer 'dape-info-modules-mode))
(display-buffer (current-buffer)) ; trigger window-buffer-change-functions
(dape-test--should ;; Regression .* symlinks are now handled differently
(dape-test--line-at-regex "^__main__ of .*main.py")))))

Expand All @@ -593,6 +595,7 @@ Expects line with string \"breakpoint\" in source."
;; contents
(with-current-buffer (dape-test--should
(dape--info-get-live-buffer 'dape-info-sources-mode))
(display-buffer (current-buffer)) ; trigger window-buffer-change-functions
(dape-test--should
(and (dape-test--line-at-regex "^os ")
(dape-test--line-at-regex "index.js"))))
Expand Down

0 comments on commit e00d43e

Please sign in to comment.