Skip to content

Commit

Permalink
dont merge - highlight race conditions in chewie test cases
Browse files Browse the repository at this point in the history
chewie tests load up all the responses and then set the ball rolling,
but we can't rely on the radius sender to always be called before the
radius receiver.

we should implement #68 and get the mocks nice and in lock-step to test
specific sequences of events
  • Loading branch information
samrussell committed Nov 14, 2018
1 parent 51aeed1 commit 40b1dbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_chewie.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ def test_success_dot1x(self):
pool = eventlet.GreenPool()
chewie_thread = pool.spawn(self.chewie.run)

eventlet.sleep(0.1)
while FROM_SUPPLICANT.qsize():
eventlet.sleep()
eventlet.sleep()

self.assertEqual(
self.chewie.get_state_machine('02:42:ac:17:00:6f',
Expand Down

0 comments on commit 40b1dbf

Please sign in to comment.