Compare commits

...

2 commits

Author SHA1 Message Date
Erik Johnston d065598c99 Update logs 2024-06-14 16:08:43 +01:00
Erik Johnston 4bd969ba55
Update tests/storage/test_id_generators.py
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2024-06-14 16:07:47 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ class PostgresSequenceGenerator(SequenceGenerator):
# forwards again. We resolve this by setting the sequence to the
# right value.
logger.warning(
"Postgres sequence %s is behind table %s: %d < %d",
"Postgres sequence %s is behind table %s: %d < %d. Updating sequence.",
self._sequence_name,
table,
last_value,

View file

@ -524,7 +524,7 @@ class WorkerMultiWriterIdGeneratorTestCase(MultiWriterIdGeneratorBase):
self.assertEqual(id_gen_5.get_current_token_for_writer("third"), 6)
def test_sequence_consistency(self) -> None:
"""Test that we correct sequence if the table and sequence diverges."""
"""Test that we correct the sequence if the table and sequence diverges."""
# Prefill with some rows
self._insert_row_with_id("master", 3)