summaryrefslogtreecommitdiff
path: root/tests/odb/sorting.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-07-30 11:37:12 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-07-30 11:37:12 -0400
commite5975f36d7f00cb5bca7b2532bfcfb3130d2a069 (patch)
treea658987a45c6409f03b76ffd31bdf41017572566 /tests/odb/sorting.c
parente87bcb3d770316fcb59f35d0aa6919c14a2a0eaa (diff)
downloadlibgit2-ethomson/odb_tests_priority.tar.gz
tests: reset odb backend priorityethomson/odb_tests_priority
Diffstat (limited to 'tests/odb/sorting.c')
-rw-r--r--tests/odb/sorting.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/odb/sorting.c b/tests/odb/sorting.c
index dc87a854d..e027230fa 100644
--- a/tests/odb/sorting.c
+++ b/tests/odb/sorting.c
@@ -1,5 +1,6 @@
#include "clar_libgit2.h"
#include "git2/sys/odb_backend.h"
+#include "odb.h"
typedef struct {
git_odb_backend base;
@@ -43,6 +44,11 @@ void test_odb_sorting__cleanup(void)
{
git_odb_free(_odb);
_odb = NULL;
+
+ cl_git_pass(git_libgit2_opts(GIT_OPT_SET_ODB_LOOSE_PRIORITY,
+ GIT_ODB_DEFAULT_LOOSE_PRIORITY));
+ cl_git_pass(git_libgit2_opts(GIT_OPT_SET_ODB_PACKED_PRIORITY,
+ GIT_ODB_DEFAULT_PACKED_PRIORITY));
}
void test_odb_sorting__basic_backends_sorting(void)