diff options
-rw-r--r-- | tests/threads/refdb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/threads/refdb.c b/tests/threads/refdb.c index 0c5cd2be6..d8dc77ba5 100644 --- a/tests/threads/refdb.c +++ b/tests/threads/refdb.c @@ -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); } |