Skip to content

Commit

Permalink
Automatic style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robot-clickhouse committed Dec 12, 2023
1 parent e77cb18 commit f2336ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion tests/integration/helpers/postgres_utility.py
Expand Up @@ -280,7 +280,13 @@ def create_and_fill_postgres_table(self, table_name, database_name=""):
f"INSERT INTO {database_name}.{table_name} SELECT number, number from numbers(50)"
)

def create_and_fill_postgres_tables(self, tables_num, numbers=50, database_name="", table_name_base="postgresql_replica"):
def create_and_fill_postgres_tables(
self,
tables_num,
numbers=50,
database_name="",
table_name_base="postgresql_replica",
):
for i in range(tables_num):
table_name = f"{table_name_base}_{i}"
create_postgres_table(self.cursor, table_name, database_name)
Expand Down
Expand Up @@ -416,7 +416,9 @@ def test_many_concurrent_queries(started_cluster):
database=True,
)
cursor = conn.cursor()
pg_manager.create_and_fill_postgres_tables(NUM_TABLES, numbers=10000, table_name_base=table)
pg_manager.create_and_fill_postgres_tables(
NUM_TABLES, numbers=10000, table_name_base=table
)

def attack(thread_id):
print("thread {}".format(thread_id))
Expand Down

0 comments on commit f2336ff

Please sign in to comment.