提交 c5708907 编写于 作者: G Ganlin Zhao

fix test cases

上级 2f4c73d8
...@@ -271,6 +271,10 @@ SMonHttpStatus *monGetHttpStatusHashTableEntry(int32_t code) { ...@@ -271,6 +271,10 @@ SMonHttpStatus *monGetHttpStatusHashTableEntry(int32_t code) {
} }
static void *monAuditFunc(void *param) { static void *monAuditFunc(void *param) {
if (!tsEnableAudit) {
return NULL;
}
monDebug("starting to initialize audit database..."); monDebug("starting to initialize audit database...");
setThreadName("audit"); setThreadName("audit");
taosMsleep(1000); taosMsleep(1000);
......
...@@ -71,7 +71,7 @@ class TDTestCase: ...@@ -71,7 +71,7 @@ class TDTestCase:
time.sleep(3) time.sleep(3)
ret = tdSql.query('show vnodes "{}"'.format(dnodeEndpoint)) ret = tdSql.query('show vnodes "{}"'.format(dnodeEndpoint))
tdSql.checkRows(1) tdSql.checkRows(2)
tdSql.checkData(0, 0, 2) tdSql.checkData(0, 0, 2)
tdSql.checkData(0, 1, "leader") tdSql.checkData(0, 1, "leader")
......
...@@ -101,8 +101,9 @@ class TDTestCase: ...@@ -101,8 +101,9 @@ class TDTestCase:
tdSql.execute("drop database db") tdSql.execute("drop database db")
tdSql.execute("drop database db1") tdSql.execute("drop database db1")
time.sleep(1)
tdSql.query("show databases") tdSql.query("show databases")
tdSql.checkRows(0) tdSql.checkRows(1)
os.system("%s -i ./taosdumptest/tmp1" % binPath) os.system("%s -i ./taosdumptest/tmp1" % binPath)
os.system("%s -i ./taosdumptest/tmp2" % binPath) os.system("%s -i ./taosdumptest/tmp2" % binPath)
......
...@@ -94,8 +94,9 @@ class TDTestCase: ...@@ -94,8 +94,9 @@ class TDTestCase:
binPath) binPath)
tdSql.execute("drop database db") tdSql.execute("drop database db")
time.sleep(1)
tdSql.query("show databases") tdSql.query("show databases")
tdSql.checkRows(0) tdSql.checkRows(1)
os.system("%s -i ./taosdumptest/tmp -y" % binPath) os.system("%s -i ./taosdumptest/tmp -y" % binPath)
......
...@@ -85,6 +85,7 @@ echo wdebugFlag 135 >> %TAOS_CFG% ...@@ -85,6 +85,7 @@ echo wdebugFlag 135 >> %TAOS_CFG%
echo cqdebugFlag 135 >> %TAOS_CFG% echo cqdebugFlag 135 >> %TAOS_CFG%
echo monitor 0 >> %TAOS_CFG% echo monitor 0 >> %TAOS_CFG%
echo monitorInterval 1 >> %TAOS_CFG% echo monitorInterval 1 >> %TAOS_CFG%
echo audit 0 >> %TAOS_CFG%
echo http 0 >> %TAOS_CFG% echo http 0 >> %TAOS_CFG%
echo slaveQuery 0 >> %TAOS_CFG% echo slaveQuery 0 >> %TAOS_CFG%
echo numOfThreadsPerCore 2.0 >> %TAOS_CFG% echo numOfThreadsPerCore 2.0 >> %TAOS_CFG%
......
...@@ -139,6 +139,7 @@ echo "wdebugFlag 143" >> $TAOS_CFG ...@@ -139,6 +139,7 @@ echo "wdebugFlag 143" >> $TAOS_CFG
echo "cqdebugFlag 143" >> $TAOS_CFG echo "cqdebugFlag 143" >> $TAOS_CFG
echo "monitor 0" >> $TAOS_CFG echo "monitor 0" >> $TAOS_CFG
echo "monitorInterval 1" >> $TAOS_CFG echo "monitorInterval 1" >> $TAOS_CFG
echo "audit 0" >> $TAOS_CFG
echo "http 0" >> $TAOS_CFG echo "http 0" >> $TAOS_CFG
echo "slaveQuery 0" >> $TAOS_CFG echo "slaveQuery 0" >> $TAOS_CFG
echo "numOfThreadsPerCore 2.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.
先完成此消息的编辑!
想要评论请 注册