Skip to content

Commit

Permalink
Merge pull request #183 from suvi-123/deleteRoot_remove_failure
Browse files Browse the repository at this point in the history
Avoid error log for deleteRootAndMultipartDocs function
  • Loading branch information
sadhyama authored Oct 5, 2023
2 parents b0aa680 + 11fcb4b commit 091bfce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/webcfg_multipart.c
Original file line number Diff line number Diff line change
Expand Up @@ -2454,13 +2454,8 @@ WEBCFG_STATUS deleteRootAndMultipartDocs()
delete_tmp_list();
delete_multipart();
WebcfgDebug("After free mp\n");
return WEBCFG_SUCCESS;
}
else
{
WebcfgError("deleteRootAndMultipartDocs failed\n");
return WEBCFG_FAILURE;
}
return WEBCFG_SUCCESS;
}

void failedDocsRetry()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_multipart_unittest.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ void test_deleteRootAndMultipartDocs_fail(){
tmpData->next = NULL;
set_global_tmp_node(tmpData);
int m=deleteRootAndMultipartDocs();
CU_ASSERT_EQUAL(1,m);
CU_ASSERT_EQUAL(0,m);
set_global_tmp_node(NULL);
set_global_mp(NULL);
}
Expand Down

0 comments on commit 091bfce

Please sign in to comment.