Skip to content

Commit

Permalink
attempt to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Nov 13, 2022
1 parent e66e2c2 commit c793f0f
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/git/repo_commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func TestGetTagCommitWithSignature(t *testing.T) {
assert.NoError(t, err)
defer bareRepo1.Close()

commit, err := bareRepo1.GetCommit("3ad28a9149a2864384548f3d17ed7f38014c9e8a")
// both the tag and the commit are signed here, this validates only the commit signature
commit, err := bareRepo1.GetCommit("28b55526e7100924d864dd89e35c1ea62e7a5a32")
assert.NoError(t, err)
assert.NotNil(t, commit)
assert.NotNil(t, commit.Signature)
Expand Down
Empty file.
Binary file added modules/git/tests/repos/repo1_bare/index
Binary file not shown.
1 change: 1 addition & 0 deletions modules/git/tests/repos/repo1_bare/logs/HEAD
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
37991dec2c8e592043f47155ce4808d4580f9123 feaf4ba6bc635fec442f46ddd4512416ec43c2c2 silverwind <me@silverwind.io> 1563741799 +0200 push
feaf4ba6bc635fec442f46ddd4512416ec43c2c2 ce064814f4a0d337b333e646ece456cd39fab612 silverwind <me@silverwind.io> 1668354026 +0100 push
1 change: 1 addition & 0 deletions modules/git/tests/repos/repo1_bare/logs/refs/heads/master
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
37991dec2c8e592043f47155ce4808d4580f9123 feaf4ba6bc635fec442f46ddd4512416ec43c2c2 silverwind <me@silverwind.io> 1563741799 +0200 push
feaf4ba6bc635fec442f46ddd4512416ec43c2c2 ce064814f4a0d337b333e646ece456cd39fab612 silverwind <me@silverwind.io> 1668354026 +0100 push
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion modules/git/tests/repos/repo1_bare/refs/heads/master
Original file line number Diff line number Diff line change
@@ -1 +1 @@
feaf4ba6bc635fec442f46ddd4512416ec43c2c2
ce064814f4a0d337b333e646ece456cd39fab612
1 change: 1 addition & 0 deletions modules/git/tests/repos/repo1_bare/refs/tags/signed-tag
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
36f97d9a96457e2bab511db30fe2db03893ebc64

0 comments on commit c793f0f

Please sign in to comment.