]> git.eshelyaron.com Git - emacs.git/commitdiff
Cleanup secrets-tests
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 17 Jun 2018 09:19:16 +0000 (11:19 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 17 Jun 2018 09:19:16 +0000 (11:19 +0200)
* test/lisp/net/secrets-tests.el (secrets-test03-items)
(secrets-test04-search): Cleanup "session" collection initially.

test/lisp/net/secrets-tests.el

index b501fa602d050785456df791651bc30889bfac3e..9aa79dab0ebf97a87a8896fd82c3896e1e9fbe7b 100644 (file)
       (let (item-path)
        (should (secrets-open-session))
 
+        ;; Cleanup.  There could be items in the "session" collection.
+        (secrets--test-delete-all-session-items)
+
        ;; There shall be no items in the "session" collection.
        (should-not (secrets-list-items "session"))
        ;; There shall be items in the "Login" collection.
       (progn
        (should (secrets-open-session))
 
+        ;; Cleanup.  There could be items in the "session" collection.
+        (secrets--test-delete-all-session-items)
+
        ;; There shall be no items in the "session" collection.
        (should-not (secrets-list-items "session"))