Merge pull request #55774 from kssenii/fix-mat-pg-test

Fix test test_postgresql_replica_database_engine_2/test.py::test_replica_consumer
This commit is contained in:
Kseniia Sumarokova 2023-10-18 21:49:29 +02:00 committed by GitHub
commit 998e068d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -760,13 +760,16 @@ VALUES (1, (SELECT array_to_string(ARRAY(SELECT chr((100 + round(random() * 25))
)
@pytest.mark.skip(reason="flaky test, will fix soon")
def test_replica_consumer(started_cluster):
table = "test_replica_consumer"
pg_manager_instance2.restart()
pg_manager.create_postgres_table(table)
instance.query(
f"INSERT INTO postgres_database.{table} SELECT number, number from numbers(0, 50)"
)
for pm in [pg_manager, pg_manager_instance2]:
pm.create_and_fill_postgres_table(table)
pm.create_materialized_db(
ip=started_cluster.postgres_ip,
port=started_cluster.postgres_port,