[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 196d6c8 1/2: Make a bookmark test more robust
From: |
Stefan Kangas |
Subject: |
master 196d6c8 1/2: Make a bookmark test more robust |
Date: |
Mon, 19 Oct 2020 21:32:20 -0400 (EDT) |
branch: master
commit 196d6c851c7d154f6e660456e287a46eed2c8898
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
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 d016288..6745e4c 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")