Skip to content

Commit

Permalink
Reset clock setup on each test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Renelvon committed Jun 11, 2015
1 parent 00e2678 commit 1dea1e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ class TestRUDPConnectionAPI(unittest.TestCase):

@classmethod
def setUpClass(cls):
cls.clock = task.Clock()
connection.REACTOR.callLater = cls.clock.callLater

cls.public_ip = '123.45.67.89'
cls.port = 12345
cls.own_addr = (cls.public_ip, cls.port)
cls.addr1 = ('132.54.76.98', 54321)
cls.addr2 = ('231.76.45.89', 15243)

def setUp(self):
self.clock = task.Clock()
connection.REACTOR.callLater = self.clock.callLater

self.proto_mock = mock.Mock(spec_set=rudp.ConnectionMultiplexer)
self.handler_mock = mock.Mock(spec_set=connection.Handler)
self.con = connection.RUDPConnection(
Expand Down

0 comments on commit 1dea1e9

Please sign in to comment.