fix:test case error
This commit is contained in:
parent
596121431c
commit
a29d1b0c59
|
@ -7254,6 +7254,7 @@ static int32_t buildCmdMsg(STranslateContext* pCxt, int16_t msgType, FSerializeF
|
||||||
pCxt->pCmdMsg->msgLen = func(NULL, 0, pReq);
|
pCxt->pCmdMsg->msgLen = func(NULL, 0, pReq);
|
||||||
pCxt->pCmdMsg->pMsg = taosMemoryMalloc(pCxt->pCmdMsg->msgLen);
|
pCxt->pCmdMsg->pMsg = taosMemoryMalloc(pCxt->pCmdMsg->msgLen);
|
||||||
if (NULL == pCxt->pCmdMsg->pMsg) {
|
if (NULL == pCxt->pCmdMsg->pMsg) {
|
||||||
|
taosMemoryFreeClear(pCxt->pCmdMsg);
|
||||||
return TSDB_CODE_OUT_OF_MEMORY;
|
return TSDB_CODE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
func(pCxt->pCmdMsg->pMsg, pCxt->pCmdMsg->msgLen, pReq);
|
func(pCxt->pCmdMsg->pMsg, pCxt->pCmdMsg->msgLen, pReq);
|
||||||
|
|
|
@ -230,7 +230,7 @@ endi
|
||||||
sql_error show create stable t0;
|
sql_error show create stable t0;
|
||||||
|
|
||||||
sql show variables;
|
sql show variables;
|
||||||
if $rows != 4 then
|
if $rows != 9 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,7 @@ if $rows != 3 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql show variables;
|
sql show variables;
|
||||||
if $rows != 4 then
|
if $rows != 9 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ class TDTestCase:
|
||||||
|
|
||||||
def case2(self):
|
def case2(self):
|
||||||
tdSql.query("show variables")
|
tdSql.query("show variables")
|
||||||
tdSql.checkRows(4)
|
tdSql.checkRows(9)
|
||||||
|
|
||||||
for i in range(self.replicaVar):
|
for i in range(self.replicaVar):
|
||||||
tdSql.query("show dnode %d variables like 'debugFlag'" % (i + 1))
|
tdSql.query("show dnode %d variables like 'debugFlag'" % (i + 1))
|
||||||
|
|
Loading…
Reference in New Issue