Skip to content

Commit 35adc01

Browse files
committed
[testing] fixed the callback test failure (needed some sleep)
1 parent 335287f commit 35adc01

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

testing/callbacks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ class RunCloseTest(pyMOOSTestCase):
2525
def test_on_connect(self):
2626
c = pymoos.comms()
2727
c.set_on_connect_callback(
28-
lambda : self.assertTrue(c.register('SIMPLE_VAR', 0)))
28+
lambda : self.assertTrue(c.register('SIMPLE_VAR')))
2929
c.run('localhost', 9000, 'test_on_connect')
3030
c.wait_until_connected(2000)
31+
time.sleep(1)
3132

3233
self.assertTrue(c.is_registered_for('SIMPLE_VAR'))
3334

0 commit comments

Comments
 (0)