[Cryptech-Commits] [sw/libhal] branch pymux updated: Race condition in test was triggering HAL_ERROR_KEY_NOT_FOUND.

git at cryptech.is git at cryptech.is
Tue Apr 4 00:41:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch pymux
in repository sw/libhal.

The following commit(s) were added to refs/heads/pymux by this push:
     new c6f35b5  Race condition in test was triggering HAL_ERROR_KEY_NOT_FOUND.
c6f35b5 is described below

commit c6f35b5afc9a829b1c03a9f8d0876e1448e5a686
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon Apr 3 20:38:06 2017 -0400

    Race condition in test was triggering HAL_ERROR_KEY_NOT_FOUND.
---
 unit-tests.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/unit-tests.py b/unit-tests.py
index bc7edf7..4fd91e6 100644
--- a/unit-tests.py
+++ b/unit-tests.py
@@ -569,8 +569,7 @@ class TestPKeyMatch(TestCaseLoggedIn):
             tags.extend(PreloadedKey.db)
         self.assertEqual(len(tags), len(uuids))
 
-        matched_uuids = set(k.uuid for n, k in self.match(flags = flags))
-        self.assertGreaterEqual(matched_uuids, uuids)
+        self.assertEqual(uuids, set(k.uuid for n, k in self.match(flags = flags, uuids = uuids)))
 
         for keytype in set(HALKeyType.index.itervalues()) - {HAL_KEY_TYPE_NONE}:
             for n, k in self.match(flags = flags, uuids = uuids, type = keytype):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list