From c6f35b5afc9a829b1c03a9f8d0876e1448e5a686 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 3 Apr 2017 20:38:06 -0400 Subject: 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): -- cgit v1.2.3