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

Merge branch 'bug-#269-problem_building_on_linux' into 'develop'

Fix broken unit tests preventing build of Linux

Closes #269

See merge request !319
parents a035ce8e 7dcc8fd7
No related branches found
No related tags found
1 merge request!319Fix broken unit tests preventing build of Linux
Pipeline #4007 passed with stage
in 5 minutes and 46 seconds
......@@ -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