diff options
author | gregor herrmann <gregoa@debian.org> | 2023-12-09 22:41:53 +0100 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2023-12-09 22:41:53 +0100 |
commit | fe287ce0c62aee5419388636a34bf16d624e2405 (patch) | |
tree | b44dee7f8e23546eeed6ce6bb0e492d86db85dcd | |
parent | 7dce04faaffcb5bcfb3ce0d0573e778e7d9857d0 (diff) |
adjust tests to libgit2 1.7.1
Origin: vendor
Bug-Debian: https://bugs.debian.org/1057318
Forwarded: not-needed (upstream uses a vendored libgit2)
Last-Update: 2023-12-09
* t/08-branch.t: relog handling changed, adjust to the new 2 entries
* t/19-push.t: the pack_progress callback returns all kind of values
(timing issue?), mark as TODO
Gbp-Pq: Name libgit2_1.7.1
-rw-r--r-- | t/08-branch.t | 2 | ||||
-rw-r--r-- | t/19-push.t | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/t/08-branch.t b/t/08-branch.t index 15386cd8..80c19c24 100644 --- a/t/08-branch.t +++ b/t/08-branch.t @@ -51,7 +51,7 @@ is $look -> name, 'refs/heads/some_branch'; my $reflog = $look -> reflog; my @entries = $reflog -> entries; -is scalar(@entries), 1; +is scalar(@entries), 2; ok (!defined (Git::Raw::Branch -> lookup($repo, 'nonexistent_local', 1))); ok (!defined (Git::Raw::Branch -> lookup($repo, 'nonexistent_remote', 0))); diff --git a/t/19-push.t b/t/19-push.t index 63c30c7d..90b30631 100644 --- a/t/19-push.t +++ b/t/19-push.t @@ -31,7 +31,10 @@ is $remote -> upload(['refs/heads/main:refs/heads/main'], { $stage == Git::Raw::Packbuilder->DELTAFICATION); if ($stage == Git::Raw::Packbuilder->ADDING_OBJECTS) { + TODO: { + local $TODO = 'flaky with libgit2 1.7.1'; is $current, 1; + } is $total, 0; } else @@ -70,7 +73,10 @@ is $remote -> upload(['refs/heads/main:refs/heads/main'], { ok ($stage == 0 || $stage == 1); if ($stage == 0) { + TODO: { + local $TODO = 'flaky with libgit2 1.7.1'; is $current, 1; + } is $total, 0; } else |