Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid error log for deleteRootAndMultipartDocs function #183

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/webcfg_multipart.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
}
#endif
}
WebcfgDebug("set url rc:%d\n",rc);

Check warning on line 314 in src/webcfg_multipart.c

View check run for this annotation

Codecov / codecov/patch

src/webcfg_multipart.c#L314

Added line #L314 was not covered by tests
}
else
{
Expand Down Expand Up @@ -2454,13 +2454,8 @@
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
Loading