From e00d43e714f2a123a29a3259f7baa9d6ec30a111 Mon Sep 17 00:00:00 2001 From: Daniel Pettersson Date: Sat, 17 Feb 2024 01:44:37 +0100 Subject: [PATCH] Fix failing test, buffers are not updated unless shown Change introduced in cc89cc2 --- dape-tests.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dape-tests.el b/dape-tests.el index 2751f92..42dfc84 100644 --- a/dape-tests.el +++ b/dape-tests.el @@ -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") @@ -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"))))) @@ -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"))))