Commit 7c32d874 by Carlos Martín Nieto

refdb: expect threaded test deletes to race

At times we may try to delete a reference which a different thread has
already taken care of.
parent 33248b9e
......@@ -104,6 +104,10 @@ static void *delete_refs(void *arg)
do {
error = git_reference_delete(ref);
} while (error == GIT_ELOCKED);
/* Sometimes we race with other deleter threads */
if (error == GIT_ENOTFOUND)
error = 0;
cl_git_pass(error);
git_reference_free(ref);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment