From: Stefan Kangas Date: Tue, 20 Oct 2020 01:14:36 +0000 (+0200) Subject: Make a bookmark test more robust X-Git-Tag: emacs-28.0.90~5532 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=196d6c851c7d154f6e660456e287a46eed2c8898;p=emacs.git Make a bookmark test more robust * test/lisp/bookmark-tests.el (bookmark-tests-insert-annotation): Make test more robust by not being timing dependent. --- diff --git a/test/lisp/bookmark-tests.el b/test/lisp/bookmark-tests.el index d0162889a86..6745e4c1d8a 100644 --- a/test/lisp/bookmark-tests.el +++ b/test/lisp/bookmark-tests.el @@ -312,7 +312,7 @@ the lexically-bound variable `buffer'." (with-bookmark-test (should-error (bookmark-insert-annotation "a missing bookmark")) (bookmark-insert-annotation "name") - (should (equal (buffer-string) (bookmark-default-annotation-text "name")))) + (should (string-match "Type the annotation" (buffer-string)))) (with-bookmark-test (bookmark-set-annotation "name" "some stuff") (bookmark-insert-annotation "name")