Permalink
Browse files

Handle missing an Empty event in ha test

  • Loading branch information...
1 parent f695874 commit a85773583b8ba5427c108836079dde9a78389369 @oldpatricka oldpatricka committed Oct 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 ion/agents/cei/test/test_haagent.py
View
3 ion/agents/cei/test/test_haagent.py
@@ -4,6 +4,7 @@
import socket
from BaseHTTPServer import HTTPServer
from gevent import queue
+from gevent.queue import Empty
from random import randint
from nose.plugins.attrib import attr
@@ -398,7 +399,7 @@ def test_sensor_policy(self):
self.subscribe_events(None)
try:
self.await_state_event("test", ProcessStateEnum.SPAWN)
- except AssertionError, e:
+ except (AssertionError, Empty), e:
if len(self.get_running_procs()) != 1:
raise e

0 comments on commit a857735

Please sign in to comment.