Skip to content

Commit 5b5db53

Browse files
committed
fix tests
1 parent aa01681 commit 5b5db53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/git/commit_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ import (
1212
)
1313

1414
func TestCommitsCount(t *testing.T) {
15-
p, err := filepath.Abs(".")
15+
p, err := filepath.Abs("../../")
1616
assert.NoError(t, err)
1717
commitsCount, err := CommitsCount(p, "a30e5bcaf83a82f5f7d1c89a6f9f7e52036d74af")
1818
assert.NoError(t, err)
1919
assert.Equal(t, int64(6), commitsCount)
2020
}
2121

2222
func TestGetFullCommitID(t *testing.T) {
23-
p, err := filepath.Abs(".")
23+
p, err := filepath.Abs("../../")
2424
assert.NoError(t, err)
2525
id, err := GetFullCommitID(p, "a30e5bca")
2626
assert.NoError(t, err)
2727
assert.Equal(t, "a30e5bcaf83a82f5f7d1c89a6f9f7e52036d74af", id)
2828
}
2929

3030
func TestGetFullCommitIDError(t *testing.T) {
31-
p, err := filepath.Abs(".")
31+
p, err := filepath.Abs("../../")
3232
assert.NoError(t, err)
3333
id, err := GetFullCommitID(p, "unknown")
3434
assert.Empty(t, id)

0 commit comments

Comments
 (0)