Skip to content

Commit

Permalink
Fix test that fails on specific macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Tattoo committed Oct 20, 2023
1 parent 5bf9f29 commit dfd11d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/utest/robot_interface/test_time_conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ def _validate_timestamp(self, result):
expected = '19700101 00:00:00.990000'
import platform
# Particular Windows 10 calculates epoch differently ( T ʖ̯ T)
if platform.system() == 'Windows' and platform.version() == '10.0.19044':
if ((platform.system() == 'Windows' and
platform.version() == '10.0.19044') or
(platform.system() == 'Darwin' and
platform.release() == '21.6.0')):
expected = '19700101 02:00:00.990000'

self.assertEqual(timestamp, expected)
Expand Down

0 comments on commit dfd11d1

Please sign in to comment.