]> git.eshelyaron.com Git - emacs.git/commitdiff
Make a bookmark test more robust
authorStefan Kangas <stefan@marxist.se>
Tue, 20 Oct 2020 01:14:36 +0000 (03:14 +0200)
committerStefan Kangas <stefan@marxist.se>
Tue, 20 Oct 2020 01:21:31 +0000 (03:21 +0200)
* test/lisp/bookmark-tests.el (bookmark-tests-insert-annotation):
Make test more robust by not being timing dependent.

test/lisp/bookmark-tests.el

index d0162889a867935e20fedb2a22c013d91ebee6cb..6745e4c1d8abbb295d548324c91bf6ae542d5b1d 100644 (file)
@@ -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")