Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
0cebefae
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0cebefae
编写于
2月 28, 2020
作者:
V
Vitaly Baranov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
The restart_clickhouse() function in integration tests now waits until the server is restarted.
上级
91523752
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
3 addition
and
4 deletion
+3
-4
dbms/tests/integration/helpers/cluster.py
dbms/tests/integration/helpers/cluster.py
+3
-0
dbms/tests/integration/test_multiple_disks/test.py
dbms/tests/integration/test_multiple_disks/test.py
+0
-1
dbms/tests/integration/test_replication_without_zookeeper/test.py
...ts/integration/test_replication_without_zookeeper/test.py
+0
-1
dbms/tests/integration/test_server_initialization/test.py
dbms/tests/integration/test_server_initialization/test.py
+0
-2
未找到文件。
dbms/tests/integration/helpers/cluster.py
浏览文件 @
0cebefae
...
...
@@ -686,6 +686,9 @@ class ClickHouseInstance:
self
.
exec_in_container
([
"bash"
,
"-c"
,
"pkill {} clickhouse"
.
format
(
"-9"
if
kill
else
""
)],
user
=
'root'
)
time
.
sleep
(
stop_start_wait_sec
)
self
.
exec_in_container
([
"bash"
,
"-c"
,
"{} --daemon"
.
format
(
CLICKHOUSE_START_COMMAND
)],
user
=
str
(
os
.
getuid
()))
# wait start
from
helpers.test_tools
import
assert_eq_with_retry
assert_eq_with_retry
(
self
,
"select 1"
,
"1"
,
retry_count
=
int
(
stop_start_wait_sec
/
0.5
),
sleep_time
=
0.5
)
def
exec_in_container
(
self
,
cmd
,
detach
=
False
,
**
kwargs
):
container
=
self
.
get_docker_handle
()
...
...
dbms/tests/integration/test_multiple_disks/test.py
浏览文件 @
0cebefae
...
...
@@ -1164,7 +1164,6 @@ def test_kill_while_insert(start_cluster):
except
:
""""""
time
.
sleep
(
0.5
)
assert
node1
.
query
(
"SELECT count() FROM {name}"
.
format
(
name
=
name
)).
splitlines
()
==
[
"10"
]
finally
:
...
...
dbms/tests/integration/test_replication_without_zookeeper/test.py
浏览文件 @
0cebefae
...
...
@@ -47,7 +47,6 @@ def test_startup_without_zookeeper(start_cluster):
node1
.
query
(
"INSERT INTO test_table VALUES ('2018-10-01', 1), ('2018-10-02', 2), ('2018-10-03', 3)"
)
node1
.
restart_clickhouse
()
time
.
sleep
(
5
)
assert
node1
.
query
(
"SELECT COUNT(*) from test_table"
)
==
"3
\n
"
assert
node1
.
query
(
"SELECT is_readonly from system.replicas where table='test_table'"
)
==
"1
\n
"
...
...
dbms/tests/integration/test_server_initialization/test.py
浏览文件 @
0cebefae
...
...
@@ -44,5 +44,3 @@ def test_live_view_dependency(started_cluster):
instance
.
query
(
"CREATE TABLE b_load_second.mt (a Int32) Engine=MergeTree order by tuple()"
)
instance
.
query
(
"CREATE LIVE VIEW a_load_first.lv AS SELECT sum(a) FROM b_load_second.mt"
,
settings
=
{
'allow_experimental_live_view'
:
1
})
instance
.
restart_clickhouse
()
time
.
sleep
(
5
)
instance
.
query
(
"SELECT 1"
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录