Skip to content
Snippets Groups Projects
Commit 7dcc8fd7 authored by Kien Le's avatar Kien Le
Browse files

Fix broken unit tests preventing build of Linux

parent a035ce8e
No related branches found
No related tags found
1 merge request!319Fix broken unit tests preventing build of Linux
......@@ -90,7 +90,9 @@ class TestReftek(BaseTestCase):
}
expected_waveform = ['DS1-1', 'DS1-2', 'DS1-3']
obj = RT130(**args)
self.assertEqual(obj.found_data_streams, [9, 1, 1])
# The found data streams are in different order between MacOS and
# Linux, so we can't use a normal equality check.
self.assertCountEqual(obj.found_data_streams, [9, 1, 1])
self.assertEqual(obj.data_set_ids, [('92EB', '25')])
self.assertEqual(
list(obj.stream_header_by_data_set_id_chan[('92EB', '25')].keys()),
......@@ -186,7 +188,9 @@ class TestReftek(BaseTestCase):
'GPS Lk/Unlk', 'Clk Phase Err', 'Event DS1']
expected_waveform = ['DS1-1', 'DS1-2', 'DS1-3']
obj = RT130(**args)
self.assertEqual(obj.found_data_streams, [9, 1, 1, 2, 2])
# The found data streams are in different order between MacOS and
# Linux, so we can't use a normal equality check.
self.assertCountEqual(obj.found_data_streams, [9, 1, 1, 2, 2])
self.assertEqual(obj.data_set_ids, [('92EB', '25'), ('98AD', '0')])
self.assertEqual(obj.selected_data_set_id, ('92EB', '25'))
self.assertEqual(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment