Fix bug in flaky rfxtrx test (#2107)

This commit is contained in:
Daniel Høyer Iversen authored and Paulus Schoutsen committed 2016-05-19 06:36:11 -07:00
1 parent bfd64ce96e
commit 5f98a70c21
1 file changed
+2 -2
+2 -2
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."""