Skip to content

Commit 26a0c21

Browse files
committed
Fix test to use base name instead of full path
Signed-off-by: Javi Fontan <[email protected]>
1 parent 5852176 commit 26a0c21

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

integration_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package gitquery_test
22

33
import (
44
"context"
5+
"path/filepath"
56
"testing"
67

78
"github.com/src-d/gitquery"
@@ -20,6 +21,8 @@ func TestIntegration(t *testing.T) {
2021
}()
2122

2223
path := fixtures.ByTag("worktree").One().Worktree().Root()
24+
dirName := filepath.Base(path)
25+
2326
pool := gitquery.NewRepositoryPool()
2427
_, err := pool.AddGit(path)
2528
require.NoError(t, err)
@@ -105,9 +108,9 @@ func TestIntegration(t *testing.T) {
105108
) as t
106109
GROUP BY committer_email, month, repo_id`,
107110
[]sql.Row{
108-
{int32(6), int32(3), path, "[email protected]"},
109-
{int32(1), int32(4), path, "[email protected]"},
110-
{int32(1), int32(3), path, "[email protected]"},
111+
{int32(6), int32(3), dirName, "[email protected]"},
112+
{int32(1), int32(4), dirName, "[email protected]"},
113+
{int32(1), int32(3), dirName, "[email protected]"},
111114
},
112115
},
113116
{

0 commit comments

Comments
 (0)