Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
c5708907
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c5708907
编写于
10月 31, 2022
作者:
G
Ganlin Zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix test cases
上级
2f4c73d8
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
9 deletion
+17
-9
src/plugins/monitor/src/monMain.c
src/plugins/monitor/src/monMain.c
+4
-0
tests/pytest/client/client.py
tests/pytest/client/client.py
+7
-7
tests/pytest/tools/taosdumpTest.py
tests/pytest/tools/taosdumpTest.py
+2
-1
tests/pytest/tools/taosdumpTest2.py
tests/pytest/tools/taosdumpTest2.py
+2
-1
tests/script/sh/deploy.bat
tests/script/sh/deploy.bat
+1
-0
tests/script/sh/deploy.sh
tests/script/sh/deploy.sh
+1
-0
未找到文件。
src/plugins/monitor/src/monMain.c
浏览文件 @
c5708907
...
...
@@ -271,6 +271,10 @@ SMonHttpStatus *monGetHttpStatusHashTableEntry(int32_t code) {
}
static
void
*
monAuditFunc
(
void
*
param
)
{
if
(
!
tsEnableAudit
)
{
return
NULL
;
}
monDebug
(
"starting to initialize audit database..."
);
setThreadName
(
"audit"
);
taosMsleep
(
1000
);
...
...
tests/pytest/client/client.py
浏览文件 @
c5708907
...
...
@@ -28,8 +28,8 @@ class TDTestCase:
tdSql
.
prepare
()
ret
=
tdSql
.
query
(
'select database()'
)
tdSql
.
checkData
(
0
,
0
,
"db"
)
tdSql
.
checkData
(
0
,
0
,
"db"
)
ret
=
tdSql
.
query
(
'select server_status()'
)
tdSql
.
checkData
(
0
,
0
,
1
)
...
...
@@ -59,10 +59,10 @@ class TDTestCase:
if
create_time
-
time_delta
<
role_time
<
create_time
+
time_delta
:
tdLog
.
info
(
"role_time {} and create_time {} expected within range"
.
format
(
role_time
,
create_time
))
else
:
tdLog
.
exit
(
"role_time {} and create_time {} not expected within range"
.
format
(
role_time
,
create_time
))
tdLog
.
exit
(
"role_time {} and create_time {} not expected within range"
.
format
(
role_time
,
create_time
))
ret
=
tdSql
.
query
(
'show vgroups'
)
tdSql
.
checkRows
(
0
)
tdSql
.
checkRows
(
0
)
tdSql
.
execute
(
'create stable st (ts timestamp, f int) tags(t int)'
)
tdSql
.
execute
(
'create table ct1 using st tags(1)'
);
...
...
@@ -71,11 +71,11 @@ class TDTestCase:
time
.
sleep
(
3
)
ret
=
tdSql
.
query
(
'show vnodes "{}"'
.
format
(
dnodeEndpoint
))
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
2
)
tdSql
.
checkData
(
0
,
1
,
"leader"
)
cmd
=
"taos -h 127.0.0.1 -s 'show databases'"
cmd
=
"taos -h 127.0.0.1 -s 'show databases'"
r
=
os
.
popen
(
cmd
)
text
=
r
.
read
()
r
.
close
...
...
tests/pytest/tools/taosdumpTest.py
浏览文件 @
c5708907
...
...
@@ -101,8 +101,9 @@ class TDTestCase:
tdSql
.
execute
(
"drop database db"
)
tdSql
.
execute
(
"drop database db1"
)
time
.
sleep
(
1
)
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
0
)
tdSql
.
checkRows
(
1
)
os
.
system
(
"%s -i ./taosdumptest/tmp1"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/tmp2"
%
binPath
)
...
...
tests/pytest/tools/taosdumpTest2.py
浏览文件 @
c5708907
...
...
@@ -94,8 +94,9 @@ class TDTestCase:
binPath
)
tdSql
.
execute
(
"drop database db"
)
time
.
sleep
(
1
)
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
0
)
tdSql
.
checkRows
(
1
)
os
.
system
(
"%s -i ./taosdumptest/tmp -y"
%
binPath
)
...
...
tests/script/sh/deploy.bat
浏览文件 @
c5708907
...
...
@@ -85,6 +85,7 @@ echo wdebugFlag 135 >> %TAOS_CFG%
echo
cqdebugFlag
135
>>
%TAOS_CFG%
echo
monitor
0
>>
%TAOS_CFG%
echo
monitorInterval
1
>>
%TAOS_CFG%
echo
audit
0
>>
%TAOS_CFG%
echo
http
0
>>
%TAOS_CFG%
echo
slaveQuery
0
>>
%TAOS_CFG%
echo
numOfThreadsPerCore
2
.0
>>
%TAOS_CFG%
...
...
tests/script/sh/deploy.sh
浏览文件 @
c5708907
...
...
@@ -139,6 +139,7 @@ echo "wdebugFlag 143" >> $TAOS_CFG
echo
"cqdebugFlag 143"
>>
$TAOS_CFG
echo
"monitor 0"
>>
$TAOS_CFG
echo
"monitorInterval 1"
>>
$TAOS_CFG
echo
"audit 0"
>>
$TAOS_CFG
echo
"http 0"
>>
$TAOS_CFG
echo
"slaveQuery 0"
>>
$TAOS_CFG
echo
"numOfThreadsPerCore 2.0"
>>
$TAOS_CFG
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录