mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #3642 from basepi/develop
Add None checks for eventfired in event.py
This commit is contained in:
commit
7e248e76f6
@ -38,6 +38,7 @@ class EventModuleTest(integration.ModuleCase):
|
||||
self.assertTrue(ret)
|
||||
|
||||
eventfired = events.get(block=True, timeout=10)
|
||||
self.assertIsNotNone(eventfired)
|
||||
self.assertIn(
|
||||
'event.fire_master: just test it!!!!', eventfired['data']
|
||||
)
|
||||
@ -69,6 +70,7 @@ class EventModuleTest(integration.ModuleCase):
|
||||
self.assertTrue(ret)
|
||||
|
||||
eventfired = events.get(block=True, timeout=10)
|
||||
self.assertIsNotNone(eventfired)
|
||||
self.assertIn('event.fire: just test it!!!!', eventfired)
|
||||
|
||||
ret = self.run_function(
|
||||
@ -98,6 +100,7 @@ class EventModuleTest(integration.ModuleCase):
|
||||
self.assertTrue(ret)
|
||||
|
||||
eventfired = events.get(block=True, timeout=10)
|
||||
self.assertIsNotNone(eventfired)
|
||||
self.assertIn('event.fire: just test it!!!!', eventfired)
|
||||
|
||||
ret = self.run_function(
|
||||
|
Loading…
Reference in New Issue
Block a user