branch: externals/org
commit 1d35ebd93c26a511f42555e1eb54fc7f8028a124
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    test-org-clok/org-clock-update-time-maybe: Fix test for non-English LANG
    
    * testing/lisp/test-org-clock.el 
(test-org-clok/org-clock-update-time-maybe):
    Do not assert English day names.
    
    Reported-by: em...@supporter.mailer.me
---
 testing/lisp/test-org-clock.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/testing/lisp/test-org-clock.el b/testing/lisp/test-org-clock.el
index ff547a0942..44c62e7bc8 100644
--- a/testing/lisp/test-org-clock.el
+++ b/testing/lisp/test-org-clock.el
@@ -122,7 +122,10 @@ the buffer."
   "Test `org-clock-update-time-maybe' specifications."
   (should
    (equal
-    "CLOCK: [2023-04-29 Sat 00:00]--[2023-05-04 Thu 01:00] => 121:00"
+    (format
+     "CLOCK: [2023-04-29 %s 00:00]--[2023-05-04 %s 01:00] => 121:00"
+     (org-test-get-day-name "Sat")
+     (org-test-get-day-name "Thu"))
     (org-test-with-temp-text
         "CLOCK: [2023-04-29 Sat 00:00]--[2023-05-04 Thu 01:00]"
       (should (org-clock-update-time-maybe))

Reply via email to