]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix test failure in erc-networks-tests
authorUlrich Müller <ulm@gentoo.org>
Wed, 4 Sep 2024 11:35:51 +0000 (13:35 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 8 Sep 2024 11:22:45 +0000 (13:22 +0200)
* test/lisp/erc/erc-networks-tests.el
(erc-networks--id-sort-buffers): Make sure that buffers have
different timestamps.  (Bug#73036)

(cherry picked from commit 87a8b12a0c45cd92665978e63cb56354d61cc076)

test/lisp/erc/erc-networks-tests.el

index f0a7c37ddf22dd420cf2efc3843c989e4446835f..e84cca68cdd723dde354cc55e233247e0f72a047 100644 (file)
     (with-temp-buffer
       (setq erc-networks--id (erc-networks--id-fixed-create 'oldest)
             oldest (current-buffer))
+      (sleep-for 0.02)
 
       (with-temp-buffer
         (setq erc-networks--id (erc-networks--id-fixed-create 'middle)
               middle (current-buffer))
+        (sleep-for 0.02)
 
         (with-temp-buffer
           (setq erc-networks--id (erc-networks--id-fixed-create 'newest)