Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 695d3da

Browse files
committed
Tests: Small adjustment in test_offset to fix a small chance of failure due to ms rounding.
1 parent f79aba6 commit 695d3da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_diff_tables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def setUp(self):
6868
src_table.insert_rows((i, ts.datetime, s) for i, (ts, s) in enumerate(rows)),
6969
table(self.table_dst_path).create(src_table),
7070
commit,
71-
src_table.insert_row(len(rows), self.now.shift(seconds=-3).datetime, "3 seconds ago"),
71+
src_table.insert_row(len(rows), self.now.shift(seconds=-5).datetime, "5 seconds ago"),
7272
commit,
7373
]
7474
)
@@ -93,7 +93,7 @@ def test_basic(self):
9393

9494
def test_offset(self):
9595
differ = HashDiffer(bisection_factor=2, bisection_threshold=10)
96-
sec1 = self.now.shift(seconds=-2).datetime
96+
sec1 = self.now.shift(seconds=-3).datetime
9797
a = _table_segment(
9898
self.connection, self.table_src_path, "id", "datetime", max_update=sec1, case_sensitive=False
9999
)

0 commit comments

Comments
 (0)