fix(test): update test case and fix a typo.
This commit is contained in:
parent
abd90c733a
commit
2b44211928
|
@ -1974,7 +1974,7 @@ STaskDbWrapper* taskDbOpenImpl(const char* key, char* statePath, char* dbPath) {
|
|||
|
||||
cfNames = rocksdb_list_column_families(pTaskDb->dbOpt, dbPath, &nCf, &err);
|
||||
if (err != NULL) {
|
||||
stError("%s failed to create column-family, %s, %d, reason:%s", key, dbPath, nCf, err);
|
||||
stError("%s failed to create column-family, %s, %" PRIzu ", reason:%s", key, dbPath, nCf, err);
|
||||
goto _EXIT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ TEST_F(CfgTest, 02_Basic) {
|
|||
|
||||
SConfigItem* pItem = NULL;
|
||||
SConfigIter* pIter = cfgCreateIter(pConfig);
|
||||
while((pItem == cfgNextIter(pIter)) != NULL) {
|
||||
while((pItem = cfgNextIter(pIter)) != NULL) {
|
||||
switch (pItem->dtype) {
|
||||
case CFG_DTYPE_BOOL:
|
||||
printf("index:%d, cfg:%s value:%d\n", size, pItem->name, pItem->bval);
|
||||
|
|
Loading…
Reference in New Issue