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.
This commit is contained in:
Carlos Martín Nieto 2016-03-10 12:27:07 +01:00
parent 33248b9edb
commit 7c32d87450

View File

@ -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);
}