Skip to content

Commit

Permalink
tweak snapshot hard delete time check
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Oct 15, 2020
1 parent d55c6c1 commit 2339c5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -919,5 +919,5 @@ def _snapshot_and_assert_revived(self):
for result in revived_records:
# result is a tuple, the dbt_valid_from is second and dbt_valid_to is latest
self.assertIsInstance(result[1], datetime)
self.assertGreaterEqual(result[1].replace(tzinfo=pytz.UTC), self._invalidated_snapshot_datetime)
self.assertGreaterEqual(result[1].replace(tzinfo=pytz.UTC), self._invalidated_snapshot_datetime.replace(microsecond=0,tzinfo=pytz.UTC))
self.assertIsNone(result[2])

0 comments on commit 2339c5b

Please sign in to comment.