Skip to content

Commit 25ee433

Browse files
committed
fix tests
1 parent c88c364 commit 25ee433

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/git/repo_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package git
66

77
import (
8+
"path/filepath"
89
"testing"
910
"time"
1011

@@ -26,7 +27,8 @@ func TestGetLatestCommitTime(t *testing.T) {
2627
}
2728

2829
func TestRepoIsEmpty(t *testing.T) {
29-
repo, err := OpenRepository("./tests/repos/repo2_empty")
30+
emptyRepo2Path := filepath.Join(testReposDir, "repo2_empty")
31+
repo, err := OpenRepository(emptyRepo2Path)
3032
assert.NoError(t, err)
3133
isEmpty, err := repo.IsEmpty()
3234
assert.NoError(t, err)

0 commit comments

Comments
 (0)