mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Update test
This commit is contained in:
parent
567f6a2b6f
commit
a8067fb3dd
@ -554,9 +554,7 @@ def test_concurrent_queries(started_cluster):
|
|||||||
busy_pool = Pool(5)
|
busy_pool = Pool(5)
|
||||||
p = busy_pool.map_async(node_insert, range(5))
|
p = busy_pool.map_async(node_insert, range(5))
|
||||||
p.wait()
|
p.wait()
|
||||||
result = node1.query("SELECT count() FROM test_pg_table", user='default')
|
assert_eq_with_retry(node1, "SELECT count() FROM test_pg_table", str(5*5*1000))
|
||||||
logging.debug(result)
|
|
||||||
assert(int(result) == 5 * 5 * 1000)
|
|
||||||
|
|
||||||
def node_insert_select(_):
|
def node_insert_select(_):
|
||||||
for i in range(5):
|
for i in range(5):
|
||||||
@ -566,9 +564,7 @@ def test_concurrent_queries(started_cluster):
|
|||||||
busy_pool = Pool(5)
|
busy_pool = Pool(5)
|
||||||
p = busy_pool.map_async(node_insert_select, range(5))
|
p = busy_pool.map_async(node_insert_select, range(5))
|
||||||
p.wait()
|
p.wait()
|
||||||
result = node1.query("SELECT count() FROM test_pg_table", user='default')
|
assert_eq_with_retry(node1, "SELECT count() FROM test_pg_table", str(5*5*1000*2))
|
||||||
logging.debug(result)
|
|
||||||
assert(int(result) == 5 * 5 * 1000 * 2)
|
|
||||||
|
|
||||||
node1.query('DROP TABLE test_pg_table;')
|
node1.query('DROP TABLE test_pg_table;')
|
||||||
cursor.execute('DROP TABLE clickhouse.test_pg_table;')
|
cursor.execute('DROP TABLE clickhouse.test_pg_table;')
|
||||||
|
Loading…
Reference in New Issue
Block a user