Fix bug in flaky rfxtrx test (#2107)

This commit is contained in:
Daniel Høyer Iversen 2016-05-19 15:36:11 +02:00 committed by Paulus Schoutsen
parent bfd64ce96e
commit 5f98a70c21

View File

@ -37,10 +37,10 @@ class TestRFXTRX(unittest.TestCase):
'automatic_add': True,
'devices': {}}}))
while len(rfxtrx.RFX_DEVICES) < 1:
while len(rfxtrx.RFX_DEVICES) < 2:
time.sleep(0.1)
self.assertEqual(len(rfxtrx.RFXOBJECT.sensors()), 1)
self.assertEqual(len(rfxtrx.RFXOBJECT.sensors()), 2)
def test_valid_config(self):
"""Test configuration."""