From 196d6c851c7d154f6e660456e287a46eed2c8898 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Tue, 20 Oct 2020 03:14:36 +0200 Subject: [PATCH] Make a bookmark test more robust * test/lisp/bookmark-tests.el (bookmark-tests-insert-annotation): Make test more robust by not being timing dependent. --- test/lisp/bookmark-tests.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.39.2