Skip to content

Commit

Permalink
Try to increase time delta for aligned and unaligned events
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-miryanov committed Jan 27, 2025
1 parent 9b3c2cb commit b32bee4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,13 @@ def expect_aligned_to_sync_marker(data, res1_filename, res2_filename):
self.assertEqual(len(func_2), 1)
self.assertEqual(len(funcs), 2)

# we expect that unaligned events shifted more than 100ms
# we expect that unaligned events shifted more than 1s
original_diff = abs(func_1[0]['ts'] - func_2[0]['ts'])
self.assertGreaterEqual(original_diff, 100000.0)
self.assertGreaterEqual(original_diff, 1000000.0)

# we expect that aligned events shifted not more than 0.1ms
# we expect that aligned events shifted not more than 50ms
aligned_diff = abs(funcs[1]['ts'] - funcs[0]['ts'])
self.assertLessEqual(aligned_diff, 100.0)
self.assertLessEqual(aligned_diff, 50000.0, str(data))

def test_align(extra_args):
with tempfile.TemporaryDirectory() as tmpdir:
Expand Down

0 comments on commit b32bee4

Please sign in to comment.