aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-04-03 20:38:06 -0400
committerRob Austein <sra@hactrn.net>2017-04-03 20:38:06 -0400
commitc6f35b5afc9a829b1c03a9f8d0876e1448e5a686 (patch)
treea09dde86f12eb966665a0935e8e37ecd11e46cfc
parent70afb31d4b4c887d5504404707849568a9e1e340 (diff)
Race condition in test was triggering HAL_ERROR_KEY_NOT_FOUND.
-rw-r--r--unit-tests.py3
1 files changed, 1 insertions, 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):