diff options
| author | Vicent Marti <vicent@github.com> | 2015-10-15 11:09:12 +0200 |
|---|---|---|
| committer | Vicent Marti <vicent@github.com> | 2015-10-15 11:09:12 +0200 |
| commit | d5f7aad810b4232da433b94e3ecf658a75bd145c (patch) | |
| tree | b259c688fa865a62ef4236306dbd7342d98424a1 /tests | |
| parent | ac7e50dd37e310b35175111904ca3da75423b735 (diff) | |
| parent | a0a1b19ab043f3579aabfb7602b4c4ac4dd69e72 (diff) | |
| download | libgit2-d5f7aad810b4232da433b94e3ecf658a75bd145c.tar.gz | |
Merge pull request #3468 from libgit2/vmg/odb-lookups
Fix pathological performance in ODB lookups
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/odb/sorting.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/odb/sorting.c b/tests/odb/sorting.c index d24c49c69..6af8b0d1b 100644 --- a/tests/odb/sorting.c +++ b/tests/odb/sorting.c @@ -57,14 +57,14 @@ void test_odb_sorting__basic_backends_sorting(void) void test_odb_sorting__alternate_backends_sorting(void) { - cl_git_pass(git_odb_add_backend(_odb, new_backend(0), 5)); - cl_git_pass(git_odb_add_backend(_odb, new_backend(2), 3)); - cl_git_pass(git_odb_add_backend(_odb, new_backend(1), 4)); - cl_git_pass(git_odb_add_backend(_odb, new_backend(3), 1)); - cl_git_pass(git_odb_add_alternate(_odb, new_backend(4), 5)); - cl_git_pass(git_odb_add_alternate(_odb, new_backend(6), 3)); - cl_git_pass(git_odb_add_alternate(_odb, new_backend(5), 4)); - cl_git_pass(git_odb_add_alternate(_odb, new_backend(7), 1)); + cl_git_pass(git_odb_add_backend(_odb, new_backend(1), 5)); + cl_git_pass(git_odb_add_backend(_odb, new_backend(5), 3)); + cl_git_pass(git_odb_add_backend(_odb, new_backend(3), 4)); + cl_git_pass(git_odb_add_backend(_odb, new_backend(7), 1)); + cl_git_pass(git_odb_add_alternate(_odb, new_backend(0), 5)); + cl_git_pass(git_odb_add_alternate(_odb, new_backend(4), 3)); + cl_git_pass(git_odb_add_alternate(_odb, new_backend(2), 4)); + cl_git_pass(git_odb_add_alternate(_odb, new_backend(6), 1)); check_backend_sorting(_odb); } |
