fix(util): set code to be success if set config success.

This commit is contained in:
Haojun Liao 2024-04-25 16:38:26 +08:00
parent d1ecfe5cf3
commit 7d1e2f1f9d
2 changed files with 2 additions and 3 deletions

View File

@ -361,12 +361,11 @@ int32_t cfgSetItem(SConfig *pCfg, const char *name, const char *value, ECfgSrcTy
}
case CFG_DTYPE_NONE:
default:
terrno = TSDB_CODE_INVALID_CFG;
break;
}
taosThreadMutexUnlock(&pCfg->lock);
terrno = TSDB_CODE_INVALID_CFG;
return code;
}

View File

@ -49,7 +49,7 @@ class TDTestCase(TBase):
def checkQueryOK(self, rets):
if rets[-2][:9] != "Query OK,":
tdLog.exit(f"check taos -s return unecpect: {rets}")
tdLog.exit(f"check taos -s return unexpect: {rets}")
def doTaos(self):
tdLog.info(f"check taos command options...")