Workaround for beacons.list_available slowness.

This commit is contained in:
Dmitry Kuzmenko 2019-08-20 02:00:00 +03:00
parent b7a10581a2
commit 0b33498e0d
No known key found for this signature in database
GPG Key ID: 4C7CAD30C95651DA

View File

@ -35,6 +35,13 @@ class TestHandleEvents(MultimasterModuleCase, ShellTestCase, AdaptedConfiguratio
('filter', 'INPUT', disconnect_master_rule),
master_tgt=1,
)
# Workaround slow beacons.list_available response
if not res:
res = self.run_function(
'iptables.append',
('filter', 'INPUT', disconnect_master_rule),
master_tgt=1,
)
self.assertTrue(res)
try:
# Send an event. This would return okay.